/* Applications Table - DHA Bahawalpur */

.applications-table-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
}

.applications-table thead {
    background: linear-gradient(135deg, 
        rgba(234, 85, 71, 0.15), 
        rgba(253, 198, 44, 0.1)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.applications-table thead th {
    padding: 1.2rem 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.applications-table thead th:first-child {
    padding-left: 1.5rem;
    border-radius: 16px 0 0 0;
}

.applications-table thead th:last-child {
    padding-right: 1.5rem;
    border-radius: 0 16px 0 0;
}

.applications-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.applications-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.applications-table tbody tr:last-child {
    border-bottom: none;
}

.applications-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 16px;
}

.applications-table tbody tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

.applications-table tbody td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: middle;
}

.applications-table tbody td:first-child {
    padding-left: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.applications-table tbody td:last-child {
    padding-right: 1.5rem;
}

/* Status Badges in Table */
.applications-table .status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 110px;
    width: auto;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Table Action Buttons */
.table-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.table-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.table-action-btn.view:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.table-action-btn.edit:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.table-action-btn.download:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Table Responsive Design */
@media (max-width: 1024px) {
    .applications-table-container {
        overflow-x: auto;
    }
    
    .applications-table {
        min-width: 800px;
    }
    
    .applications-table thead th,
    .applications-table tbody td {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .applications-table thead th:first-child,
    .applications-table tbody td:first-child {
        padding-left: 1rem;
    }
    
    .applications-table thead th:last-child,
    .applications-table tbody td:last-child {
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .applications-table {
        min-width: 700px;
    }
    
    .applications-table thead th,
    .applications-table tbody td {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .status-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
        min-width: 95px !important;
    }
    
    .table-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin: 0 0.1rem;
    }
}

/* Mobile Card Layout for Very Small Screens */
@media (max-width: 480px) {
    .applications-table-container {
        display: none;
    }
    
    .mobile-applications-cards {
        display: block;
    }
}

/* Mobile Cards (Hidden by default) */
.mobile-applications-cards {
    display: none;
    gap: 1rem;
}

.mobile-app-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-app-card .app-id {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.mobile-app-info {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-app-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-app-info-item:last-child {
    border-bottom: none;
}

.mobile-app-info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.mobile-app-info-value {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-app-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table Loading State */
.table-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: tableSpinner 1s linear infinite;
}

@keyframes tableSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Empty State */
.table-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.table-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.table-empty h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.table-empty p {
    font-size: 0.9rem;
}

/* Table Animation */
@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.applications-table-container {
    animation: tableSlideIn 0.8s ease-out;
} 