/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
    color: #fff;
}

/* Main Containers */
.container,
.form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5em;
    color: #fdfdfd;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="date"],
button {
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

input[type="radio"] {
    margin-left: 10px;
    transform: scale(1.2);
    accent-color: #00c6ff;
}

label {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-top: 10px;
}

/* Buttons */
button,
input[type="submit"] {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(to right, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th, td {
    padding: 12px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

th {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Back Button Link */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.back-btn:hover {
    background: linear-gradient(to right, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* Success & Error Messages */
.success-msg {
    color: #00ffae;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.error-msg {
    color: #ff4d4d;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Styling */
@media (max-width: 600px) {
    .form-container,
    .container {
        padding: 20px;
    }

    table, th, td {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

.namaz-vertical-table {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    gap: 10px;
}

.namaz-vertical-table .table-header,
.namaz-vertical-table .table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.table-header {
    font-weight: bold;
    color: #00e0ff;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.table-row div {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.table-row input[type="radio"] {
    transform: scale(1.3);
    accent-color: #00c6ff;
}

/* .logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(255, 75, 43, 0.4);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    cursor: pointer;
    z-index: 1000;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    box-shadow: 0 12px 20px rgba(255, 65, 108, 0.6);
    transform: scale(1.1);
}

.logout-btn:active {
    transform: scale(0.95);
    box-shadow: 0 6px 10px rgba(255, 65, 108, 0.7);
}

/* Responsive adjustment */
/* @media (max-width: 600px) {
    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} */ 

.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: space-between; /* left and right ends */
    align-items: center;
    width: 100%;
    max-width: 700px; /* Optional, max width of the container */
    margin-left: auto;
    margin-right: auto; /* center container horizontally */
}

/* Buttons base styles */
.back-btn,
.logout-btn {
    padding: 8px 18px;  /* medium size */
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 120px; /* keep button width consistent */
    text-align: center;
}

/* Back button style */
.back-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.back-btn:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* Logout button style */
.logout-btn {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    transform: scale(1.05);
}

.back-btn:active,
.logout-btn:active {
    transform: scale(0.95);
}
