/* --- Color Palette (Dark Blue & Gloomy) ---
   Background: #E6EAEF (Cold, Misty Light Gray/Blue)
   Container: #F5F7FA (Muted Off-White)
   Gloomy Dark Blue Accent: #191970 (Midnight Blue)
   Shadows/Borders: #3C4B5C (Deep Slate Gray/Blue)
   Primary Text: #333333 
*/

/* --- Base & Centered Layout --- */

body {
    font-family: 'Roboto Slab', serif; 
    background-color: #E6EAEF; 
    color: #333333; 
    margin: 0;
    padding: 0;
    
    /* Centering Setup */
    display: flex;
    justify-content: center; /* Horizontally centers the content */
    align-items: flex-start; /* Keeps content starting from the top */
    padding-top: 50px; 
    width: 100%; 
}

.container {
    background-color: #F5F7FA; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); 
    width: 95%;
    max-width: 1200px; 
    margin: 0 auto; /* Centering margin */
    border: 1px solid #C0C0C0; 
}

h1 {
    text-align: center; 
    color: #191970; 
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    font-weight: 700; 
}

h2 {
    color: #3C4B5C;
    border-bottom: 3px solid #191970; 
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: left; 
}

hr {
    margin: 30px 0;
    border: 0;
    border-top: 2px dashed #C0C0C0; 
}

/* --- Form & Input Styles --- */

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333333;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="date"],
.input-group input[type="file"],
.input-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #FFFFFF; 
    color: #333333;
    border: 1px solid #AABBCB; 
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #191970; 
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* --- Button Styles --- */

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s, transform 0.1s;
}
button:active {
    transform: translateY(1px); 
}

/* Primary Action: Submit/Create/Edit */
#submitBtn, .edit-btn {
    background-color: #191970; 
    color: #FFFFFF; 
}
#submitBtn:hover, .edit-btn:hover {
    background-color: #000047;
}

/* Secondary Action: Cancel & Download Data */
#cancelBtn, .download-btn {
    background-color: #6C7A89; 
    color: #FFFFFF;
}
#cancelBtn:hover, .download-btn:hover {
    background-color: #5B6877;
}

/* Danger Action: Delete */
.delete-btn {
    background-color: #993333; 
    color: white;
}
.delete-btn:hover {
    background-color: #7A2828;
}

/* View Actions */
.view-btn {
    background-color: #3C4B5C; 
    color: white;
    margin-right: 5px;
}
.view-btn:hover {
    background-color: #2D3A4B;
}

.view-pdf-btn {
    background-color: #9933CC; /* Purple for PDF action */
    color: white;
    margin-right: 5px;
}
.view-pdf-btn:hover {
    background-color: #7B24A1;
}

#printPdfBtn {
    background-color: #28A745; /* Green for print */
    color: white;
}
#closePdfBtn {
    background-color: #6C7A89; 
    color: white;
}


/* --- Profile Card Layout Styles --- */

.profile-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 30px; /* Increased space between cards */
    margin-top: 20px;
}

.profile-card {
    background-color: #F5F7FA; 
    border: 1px solid #191970;
    padding: 25px; /* Increased internal padding */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    color: #191970;
    border-bottom: 2px solid #D0D0D0;
    padding-bottom: 10px;
    margin-bottom: 20px; /* Increased space below header */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px; /* Increased space between details */
    line-height: 1.6;
}

.card-icon {
    color: #191970; 
    font-size: 1.2em; /* Larger icon */
    margin-right: 15px; /* Increased space between icon and text */
    min-width: 25px;
    text-align: center;
    padding-top: 2px;
}

.card-actions {
    margin-top: 30px;
    border-top: 1px solid #D0D0D0;
    padding-top: 15px;
    text-align: right;
}

/* --- PDF/Print View Styles --- */

.pdf-view-container {
    border: 3px solid #191970;
    margin: 30px 0;
    padding: 10px;
    background-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.pdf-content {
    background-color: white;
    color: #000;
    padding: 20px;
    border: 1px solid #D0D0D0;
    min-height: 400px;
    font-family: Arial, sans-serif; 
    line-height: 1.6;
}

.pdf-content h3 {
    color: #191970;
    border-bottom: 2px solid #191970;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: left;
}

.pdf-actions {
    margin-top: 10px;
    text-align: right;
}
/* --- Base & Centered Layout (MODIFIED for Background Image) --- */
/* ... (body and container styles remain the same, including the background image) ... */

h1 {
    text-align: center; 
    color: #191970; 
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    font-weight: 700; 
    /* --- NEW: Flexbox for icon and text alignment --- */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- NEW: Style for the Header Icon --- */
.header-icon {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Keep aspect ratio */
    margin-right: 15px; /* Space between icon and text */
    vertical-align: middle; /* Align with text baseline */
}


h2 {
    color: #3C4B5C;
    border-bottom: 3px solid #191970; 
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: left; 
}

/* ... (All other styles remain the same) ... */
/* --- Base & Centered Layout (Relevant changes only) --- */

h1 {
    text-align: center; 
    color: #191970; 
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    font-weight: 700; 
    /* Flexbox for icon and text alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Style for the Header Icon --- */
.header-icon {
    width: 40px; /* Standard size */
    height: 40px; 
    margin-right: 15px; /* Space between icon and text */
    vertical-align: middle; 
}
img {
  width: 10%; /* Sets the width to 150 pixels */
  height: 20%; /* Sets the height to 100 pixels */

}
    label {
        background-color:white; /* Example background color */
        color: white;
        padding: 0.5rem 1rem;
        font-family: sans-serif;
        border-radius: 0.3rem;
        cursor: pointer;
        display: inline-flex; /* To align icon and text */
        align-items: center;
        gap: 0.5rem; /* Space between icon and text */
    }

    /* Style for the icon itself, if needed */
    label i {
        font-size: 1.2em; /* Adjust icon size */
    }
    /* --- NEW: Ensure proper vertical alignment for images inside card-icon span --- */
.card-icon img {
    /* Ensures the image respects the size and alignment set in the script.js's IMG_STYLE */
    vertical-align: middle; 
}

/* Optional: To ensure the text in the card body starts perfectly after the icon, 
   you can ensure the span element is also aligned nicely */
.card-detail-item span:last-child {
    text-align: left;
    flex-grow: 1; /* Allows the text to take up the remaining space */
}
/* ... (All other CSS styles remain the same) ... */
