/* --- Global Layout Adjustments for Footer --- */
        /*body {*/
        /*    font-family: Arial, sans-serif;*/
        /*    margin: 0;*/
        /*    background-color: #f4f4f4;*/
        /*    display: flex;*/
        /*    flex-direction: column;*/
        /*    min-height: 100vh;*/
        /*}*/

        .container {
            margin-top: 2rem !important;
            margin-bottom: 2rem !important;
            max-width: 97% !important;
            margin-left: auto;
            margin-right: auto;
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .header {
            background-color: #d9a23d;
            color: white;
            padding: 10px 20px;
            border-radius: 8px 8px 0 0;
            margin: -20px -20px 20px -20px;
            font-size: 1.5em;
        }

        /* Dashboard-specific CSS */
        .dashboard-container {
            display: flex;
            width: 100%;
            flex-grow: 1;
            overflow: hidden;
        }

        .sidebar {
            width: 250px;
            background-color: #2c3e50;
            color: white;
            padding: 20px 0;
            flex-shrink: 0;
        }

        .sidebar-header {
            font-size: 1.4em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 30px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-links li {
            margin-bottom: 5px;
        }

        .nav-links a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 12px 20px;
            transition: background-color 0.3s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
            background-color: #34495e;
        }

        .main-content {
            flex-grow: 1;
            /*padding: 30px;*/
            background-color: #ffffff;
        }

        /* Reduced font size for 'Welcome Back, Administrator!' heading */
        .main-content h1 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.6em; /* Reduced from 1.8em/1.5em for a slightly smaller look */
        }

        .main-content p {
            color: #666;
            line-height: 1.6;
        }

        /* Dashboard Widgets Styling */
        .dashboard-widgets {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 columns by default (approx 30% each with gaps) */
            gap: 20px;
            margin-top: 30px;
        }

        .widget {
            border: 1px solid transparent; /* Border color will be set by inline style */
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            text-align: center;
            font-weight: bold;
            transition: all 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .widget:hover {
            transform: translateY(-7px); /* Lift effect on hover */
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* More intense shadow on hover */
        }

        .widget h2 {
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.3em;
            /* Text color now set by inline style for randomness */
        }

        .widget p {
            font-size: 2em;
            font-weight: bold;
            /* Text color now set by inline style for randomness */
            margin: 0;
        }

        /* Existing user CSS - form elements (kept for potential future use within the dashboard) */
        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 15px;
        }
        .form-group {
            flex: 1;
            min-width: 250px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"],
        input[type="email"],
        input[type="password"],
        textarea,
        select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        input[type="date"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            display: inline-block;
        }
        .password-group {
            display: flex;
            align-items: flex-end;
            gap: 5px;
        }
        .password-group input {
            flex-grow: 1;
        }
        .generate-btn {
            background-color: #007bff;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            white-space: nowrap;
        }
        .contact-group {
            display: flex;
            gap: 5px;
        }
        .contact-group input[type="text"]:first-child {
            flex-basis: 70px;
        }
        .contact-group input[type="text"]:last-child {
            flex-grow: 1;
        }
        textarea {
            resize: vertical;
            min-height: 60px;
        }
        .asterisk {
            color: red;
        }
        .document-select-group {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        .document-select-group > label {
            margin-bottom: 0;
            font-weight: bold;
        }

        .document-select-group input[type="radio"] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            border: 1px solid #999;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            margin: 0;
            margin-right: 5px;
            display: inline-block;
            vertical-align: middle;
            position: relative;
            cursor: pointer;
            outline: none;
        }

        .document-select-group input[type="radio"]:checked {
            border-color: #007bff;
            background-color: #007bff;
        }

        .document-select-group input[type="radio"]:checked::after {
            content: '';
            display: block;
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .document-select-group label[for] {
            display: inline-block;
            font-weight: normal;
            margin-bottom: 0;
            cursor: pointer;
        }

        .file-upload-group {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
            margin-top: 5px;
            width: 100%;
        }
        .file-upload-group input[type="file"] {
            flex-grow: 1;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 7px;
            width: 100%;
            box-sizing: border-box;
        }
        .file-upload-group input[type="file"]::-webkit-file-upload-button {
            visibility: hidden;
        }
        .file-upload-group input[type="file"]::before {
            content: 'Choose file';
            display: inline-block;
            background: #e0e0e0;
            border: 1px solid #ccc;
            border-radius: 3px;
            padding: 5px 10px;
            outline: none;
            white-space: nowrap;
            -webkit-user-select: none;
            cursor: pointer;
            font-weight: normal;
            font-size: 10pt;
            margin-right: 10px;
        }
        .file-upload-group input[type="file"]:hover::before {
            border-color: black;
        }
        .file-upload-group input[type="file"]:active::before {
            background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
        }

        .file-upload-group .upload-btn {
            background-color: #20c997;
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            white-space: nowrap;
            width: auto;
            align-self: flex-end;
        }

        .submit-btn {
            background-color: #073D7D;
            color: white;
            padding: 10px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1em;
            margin-top: 30px;
        }
        
        .action-btn {
            background-color: #073D7D;
            color: white;
            padding: 10px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 30px;
        }
        .danger-btn {
            background-color: red;
        }
        
        .warning-btn {
            background-color: #ffc107;
        }
        .green-btn {
            background-color: green;
        }

        /* CSS for conditional display sections */
        .document-section {
            /* Removed debugging borders for a cleaner look */
            padding: 10px;
            margin-bottom: 20px;
        }
        .document-section.active {
            display: block !important;
        }

        /* --- Footer Styles (targeting common WordPress footer elements) --- */
        footer, #colophon, .site-footer {
            width: 100%;
            background-color: #333;
            color: #fff;
            padding: 20px 0;
            margin-top: auto;
            box-sizing: border-box;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        footer .footer-content-wrapper {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding: 0 20px;
        }

        footer .footer-copyright {
            flex-grow: 1;
            text-align: left;
            min-width: 200px;
        }

        footer .footer-social-icons {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        footer .footer-social-icons a {
            color: #fff;
            font-size: 1.5em;
            text-decoration: none;
        }

        /* Responsive adjustments for dashboard */
        @media (max-width: 992px) {
            .dashboard-widgets {
                grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
            }
        }

        @media (max-width: 768px) {
            .dashboard-container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                padding: 15px 0;
            }

            .sidebar-header {
                margin-bottom: 15px;
            }

            .nav-links {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-links li {
                margin: 0 5px 5px 5px;
            }

            .nav-links a {
                padding: 8px 15px;
            }

            .main-content {
                padding: 20px;
            }
        }

        @media (max-width: 600px) {
            .dashboard-widgets {
                grid-template-columns: 1fr; /* 1 column on extra small screens */
            }
            .form-row {
                flex-direction: column;
                gap: 15px;
            }
            .form-group {
                min-width: unset;
                width: 100%;
            }
            .contact-group {
                flex-direction: column;
            }
            .contact-group input[type="text"]:first-child {
                flex-basis: auto;
                width: 100%;
            }
            footer .footer-content-wrapper {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            footer .footer-copyright {
                text-align: center;
            }
        }