/* Scholarship Students Page Styles */

.scholarship-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.scholarship-header {
    text-align: center;
    margin-bottom: 40px;
}

.scholarship-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.scholarship-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Excel-like Table Styling */
.table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.excel-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    position: sticky;
    top: 0;
}

.excel-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

.excel-table tr:nth-child(even) {
    background-color: #fafafa;
}

.excel-table tr:hover {
    background-color: #f1f7ff;
}

.col-school {
    width: 350px;
    min-width: 300px;
}

.col-dept {
    width: 200px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-paid {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.view-id-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-id-btn:hover {
    background-color: #0056b3;
}

/* Modal Styling */
.id-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #fdfdfd;
    padding: 0;
    border-radius: 20px;
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modalScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1010;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 1024px) {
    .scholarship-container {
        padding: 40px 15px;
    }

    .col-school {
        width: 250px;
        min-width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .scholarship-header h1 {
        font-size: 1.8rem;
    }

    .scholarship-header p {
        font-size: 1rem;
    }

    .scholarship-container {
        padding: 30px 10px;
    }

    .excel-table th,
    .excel-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .col-school {
        width: 200px;
        min-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .scholarship-header h1 {
        font-size: 1.5rem;
    }

    .view-id-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .modal-content {
        width: 95%;
    }
}

/* ID Card Image Styling */
.id-card-image-container {
    width: 100%;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.static-id-card {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn-container {
    padding: 20px 30px;
    background: #fff;
}

.download-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}