/* ------------------------------
   Global Page Styling
--------------------------------*/
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f2ff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 10px;
    margin: 0;
}

/* ------------------------------
   Common Container Style
--------------------------------*/
.form-container, 
.tracker-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 380px;
    max-width: 95%;
}

/* ------------------------------
   Headings
--------------------------------*/
h2 {
    text-align: center;
    color: #5b34f5;
    margin-bottom: 20px;
}

h3 {
    color: #333333;
    margin-top: 25px;
}

/* ------------------------------
   Form Inputs
--------------------------------*/
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #5b34f5;
}

/* ------------------------------
   Buttons
--------------------------------*/
button {
    background: #6b4eff;
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease;
}

button:hover {
    background: #5937d4;
}

/* ------------------------------
   Links
--------------------------------*/
a {
    color: #5b34f5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------
   Prayer Box
--------------------------------*/
.prayer-box {
    background: linear-gradient(45deg, #a06cd5, #6b9dfc);
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

/* ------------------------------
   Table Styles
--------------------------------*/
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background: #6b4eff;
    color: #ffffff;
}

/* ------------------------------
   User Info Section
--------------------------------*/
.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover; /* ✅ Correct property name */
    border: 3px solid #6b4eff;
}

/* ------------------------------
   Logout Button
--------------------------------*/
.logout-btn {
    display: inline-block;
    margin-top: 8px;
    background: #ff5252;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #e03d3d;
}

/* ------------------------------
   Responsive Design
--------------------------------*/
@media screen and (max-width: 480px) {
    .form-container,
    .tracker-container {
        padding: 20px;
        width: 100%;
    }

    h2 {
        font-size: 20px;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }
}
