/* ============================================================================
    FINKI Scientific Travel Grant System - Comprehensive Styling
    ============================================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Container & Layout */
.container-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.content-wrapper {
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.system-subtitle {
    font-size: 0.85em;
    opacity: 0.85;
    margin-top: 5px;
}

.role-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
}

.role-label {
    display: block;
    color: white;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.menu-link {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.menu-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-left: 4px solid white;
    padding-left: 12px;
}

.sidebar-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.user-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info p {
    font-weight: 600;
    margin-bottom: 4px;
}

.role {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: white;
    color: #667eea;
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 40px 0;
}

.login-box h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-subtitle {
    color: #999;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: #667eea;
    color: white;
    width: 100%;
    font-size: 16px;
    padding: 14px 24px;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.login-footer {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.default-creds {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-footer p {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
}

/* Dashboard */
.dashboard {
    padding: 20px 0;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #999;
    font-size: 16px;
}

.dashboard-actions {
    margin-bottom: 40px;
}

.applications-section {
    margin-top: 40px;
}

.applications-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #333;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.application-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.card-body {
    padding: 16px;
    flex: 1;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail .label {
    color: #999;
    font-weight: 500;
}

.detail .value {
    color: #333;
    font-weight: 600;
}

.card-footer {
    padding: 16px;
    background-color: #f8f9fa;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.empty-state p {
    color: #999;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-wrapper h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #999;
    margin-bottom: 30px;
    font-size: 16px;
}

.application-form {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn-primary {
    width: auto;
    flex: 1;
    margin-bottom: 0;
}

.form-actions .btn-secondary {
    width: auto;
    flex: 1;
}

/* Application Detail */
.application-detail {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-header h1 {
    font-size: 28px;
    color: #333;
}

.detail-info {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #666;
    font-weight: 500;
}

.info-row .value {
    color: #333;
    font-weight: 600;
}

.detail-description {
    margin-bottom: 30px;
}

.detail-description h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
}

.detail-description p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
    }

    .sidebar-header {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .sidebar-header h2 {
        font-size: 18px;
    }

    .sidebar-menu {
        display: flex;
        gap: 10px;
        flex: 1;
        margin: 0 20px;
    }

    .sidebar-menu li {
        margin-bottom: 0;
    }

    .sidebar-footer {
        border-top: none;
        padding-top: 0;
    }

    .content-wrapper {
        padding: 20px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .login-box {
        margin: 20px;
    }

    /* ============================================================================
       Role-Based System Styling
       ============================================================================ */

    .institute {
        font-size: 0.9em;
        opacity: 0.9;
    }

    .username {
        font-size: 1em;
        margin: 0;
        margin-bottom: 4px;
    }

    /* New Application Form */
    .btn-success {
        background-color: #28a745;
        color: white;
    }

    .btn-success:hover {
        background-color: #218838;
    }

    .btn-warning {
        background-color: #ffc107;
        color: black;
    }

    .btn-warning:hover {
        background-color: #e0a800;
    }

    .btn-danger {
        background-color: #dc3545;
        color: white;
    }

    .btn-danger:hover {
        background-color: #c82333;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    /* Form Select */
    select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 1.5em;
        padding-right: 2.5em;
    }

    /* Alerts */
    .alert {
        padding: 15px 20px;
        margin-bottom: 20px;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .alert-success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .alert-danger {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .alert-warning {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }

    .alert-info {
        background-color: #d1ecf1;
        color: #0c5460;
        border: 1px solid #bee5eb;
    }

    .alert-close {
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        font-size: 1.2em;
        padding: 0;
        margin-left: 15px;
    }

    /* User info in sidebar */
    .user-info {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-info p {
        font-weight: 600;
        margin-bottom: 4px;
        margin: 0;
    }

    /* Credentials styling in login */
    .credentials-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-top: 12px;
    }

    .cred-item {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        font-size: 0.85em;
    }

    .cred-item p {
        margin: 6px 0 0 0;
        line-height: 1.4;
    }

    /* Grant form styles */
    .form-container {
        max-width: 700px;
        margin: 0 auto;
    }

    fieldset {
        border: none;
        padding: 0;
        margin-bottom: 30px;
    }

    legend {
        font-size: 1.1em;
        font-weight: 600;
        color: #333;
        padding-bottom: 10px;
        border-bottom: 2px solid #667eea;
        margin-bottom: 20px;
        display: block;
        width: 100%;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 30px;
    }

    /* Grant view/review styles */
    .grant-view,
    .review-container {
        max-width: 900px;
        margin: 0 auto;
    }

    .grant-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #dee2e6;
    }

    .grant-header h1 {
        margin: 0;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }

    .info-section {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
    }

    .info-section h3 {
        margin-top: 0;
        color: #333;
        border-bottom: 2px solid #667eea;
        padding-bottom: 10px;
    }

    .info-section p {
        margin: 10px 0;
        color: #666;
    }

    .description-section {
        background: white;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        border-left: 4px solid #667eea;
    }

    .description-section h3 {
        margin-top: 0;
        color: #333;
    }

    .description-section p {
        color: #666;
        line-height: 1.6;
    }

    .review-section {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .review-timeline {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .review-item {
        background: white;
        padding: 15px;
        border-radius: 5px;
        border-left: 4px solid #ddd;
    }

    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .decision-badge {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 0.8em;
        font-weight: 600;
    }

    .decision-pending {
        background: #e2e3e5;
        color: #383d41;
    }

    .decision-approved {
        background: #d4edda;
        color: #155724;
    }

    .decision-rejected {
        background: #f8d7da;
        color: #721c24;
    }

    .review-comments {
        background: #f0f0f0;
        padding: 10px;
        border-radius: 3px;
        margin: 10px 0;
        font-size: 0.95em;
        color: #333;
    }

    .review-date {
        color: #999;
        font-size: 0.85em;
        margin: 5px 0 0 0;
    }

    .no-reviews {
        color: #999;
        font-style: italic;
    }

    .timestamps {
        color: #999;
        font-size: 0.85em;
        margin-bottom: 20px;
        padding-top: 20px;
        border-top: 1px solid #dee2e6;
    }

    .timestamps p {
        margin: 5px 0;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    /* Review form styles */
    .decision-form {
        background: white;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }

    .decision-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .radio-label {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 500;
    }

    .radio-label input[type="radio"] {
        margin-right: 10px;
        cursor: pointer;
    }

    textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-family: inherit;
        font-size: 1em;
    }

    textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .btn-block {
        width: 100%;
        padding: 12px;
    }

    .review-completed {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 5px;
    }

    .decision-result {
        padding: 15px;
        border-radius: 5px;
        margin-bottom: 15px;
        text-align: center;
        font-weight: 600;
    }

    .decision-result.decision-approved {
        background: #d4edda;
        color: #155724;
    }

    .decision-result.decision-rejected {
        background: #f8d7da;
        color: #721c24;
    }

    .review-info {
        background: white;
        padding: 15px;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .review-info p {
        margin: 8px 0;
        color: #666;
    }

    .review-type {
        color: #667eea;
        font-weight: 600;
    }

    .amount {
        font-size: 1.3em;
        font-weight: bold;
        color: #667eea;
    }

    /* Dashboard styles */
    .stat-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
    }

    .stat-number {
        font-size: 2em;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.9em;
        opacity: 0.9;
    }

    .action-bar {
        margin: 20px 0;
    }

    .section {
        margin: 30px 0;
    }

    .section h2 {
        color: #333;
        border-bottom: 2px solid #667eea;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    /* Tables */
    .applications-table,
    .reviews-table,
    .users-table,
    .grants-table,
    .recent-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .applications-table thead,
    .reviews-table thead,
    .users-table thead,
    .grants-table thead,
    .recent-table thead {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    .applications-table th,
    .reviews-table th,
    .users-table th,
    .grants-table th,
    .recent-table th {
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #dee2e6;
    }

    .applications-table td,
    .reviews-table td,
    .users-table td,
    .grants-table td,
    .recent-table td {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }

    .applications-table tbody tr:hover,
    .reviews-table tbody tr:hover,
    .users-table tbody tr:hover,
    .grants-table tbody tr:hover,
    .recent-table tbody tr:hover {
        background: #f8f9fa;
    }

    .status-badge {
        display: inline-block;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.85em;
        font-weight: 600;
    }

    .status-draft {
        background: #e9ecef;
        color: #495057;
    }

    .status-submitted,
    .status-institute_head_review,
    .status-finance_review {
        background: #fff3cd;
        color: #856404;
    }

    .status-approved {
        background: #d4edda;
        color: #155724;
    }

    .status-rejected {
        background: #f8d7da;
        color: #721c24;
    }

    .status-active {
        background: #d4edda;
        color: #155724;
    }

    .status-inactive {
        background: #f8d7da;
        color: #721c24;
    }

    /* Role badges */
    .role-badge {
        display: inline-block;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.85em;
        font-weight: 600;
        color: white;
    }

    .role-applicant {
        background-color: #17a2b8;
    }

    .role-institute-head {
        background-color: #ffc107;
        color: black;
    }

    .role-finance-dean {
        background-color: #28a745;
    }

    .role-admin {
        background-color: #dc3545;
    }

    /* Admin dashboard */
    .admin-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 40px 0;
    }

    .action-card {
        background: white;
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s, box-shadow 0.2s;
        border-left: 4px solid #dc3545;
    }

    .action-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .action-card h3 {
        margin-top: 0;
        color: #dc3545;
    }

    .action-card p {
        color: #666;
        margin: 0;
    }

    /* Filter section */
    .filter-section {
        margin: 20px 0;
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
    }

    .filter-form {
        display: flex;
        gap: 15px;
        align-items: flex-end;
    }

    /* Empty states */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        background: #f8f9fa;
        border-radius: 8px;
        color: #666;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin: 30px 0;
    }

    .page-info {
        color: #666;
        font-weight: 500;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
        }
    
        .action-card h3 {
            font-size: 1.1em;
        }
    
        .info-grid {
            grid-template-columns: 1fr;
        }
    
        .grant-header {
            flex-direction: column;
            align-items: flex-start;
        }
    
        .admin-actions {
            grid-template-columns: 1fr;
        }
    
        .table {
            font-size: 0.9em;
        }
    
        .table th,
        .table td {
            padding: 10px;
        }
    }
}
