/* =========================================
   PENDING APPLICATIONS - PREMIUM STYLING
   ========================================= */

/* Main Container */
.main-content {
    padding: 24px;
}

/* Tab Navigation */
.pending-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tab-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.tab-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Search and Controls */
.pending-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

/* Pending Controls Wrapper */
.pending-controls {
    margin-bottom: 24px;
    position: relative;
    /* Context for absolute positioning */
    display: flex;
    align-items: center;
}

/* Input Group Layout */
.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding-right: 8px;
    /* Space for badge */
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: rgba(184, 150, 12, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    z-index: 2;
}

.search-wrapper input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 14px 12px 14px 48px;
    /* Left padding for icon */
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}

.search-wrapper input:focus {
    outline: none;
}

.filter-info {
    position: static;
    /* Flow naturally */
    transform: none;
    background: rgba(184, 150, 12, 0.15);
    border: 1px solid rgba(184, 150, 12, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    margin-left: 4px;
}

/* Applications Container */
.applications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 8px 8px 8px 8px;
    margin-top: 4px;
}

.applications-container::-webkit-scrollbar {
    width: 8px;
}

.applications-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.applications-container::-webkit-scrollbar-thumb {
    background: rgba(184, 150, 12, 0.3);
    border-radius: 4px;
}

.applications-container::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 150, 12, 0.5);
}

/* Application Card */
.application-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-card:hover {
    border-color: rgba(184, 150, 12, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.application-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    margin-left: 16px;
}

.card-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.card-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

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

.card-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.card-detail-row .label {
    color: rgba(255, 255, 255, 0.6);
}

.card-detail-row .value {
    color: #fff;
    font-weight: 600;
}

.card-plan {
    color: var(--gold) !important;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.card-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.card-status.accepted {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.card-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Modal Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Sizes */
.modal-small,
.modal-medium,
.modal-large {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(25, 25, 25, 0.95));
    /* Reverted to dark premium */
    border-radius: 16px;
    border: 1px solid rgba(184, 150, 12, 0.3);
    /* Reverted to gold border */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    opacity: 0;
}

/* Trigger animation when overlay is active */
.modal-overlay.active .modal-small,
.modal-overlay.active .modal-medium,
.modal-overlay.active .modal-large {
    animation: slideUp 0.3s ease-out forwards;
}

.modal-small {
    max-width: 450px;
    width: 100%;
    text-align: center;
    padding: 32px;
    /* Added back padding for small modal */
}

.modal-medium {
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(25, 25, 25, 0.95));
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    line-height: 1;
}

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

/* Modal Body */
.modal-body {
    padding: 32px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Detail Modal Content */
.detail-section {
    margin-bottom: 32px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(184, 150, 12, 0.2);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.detail-actions button {
    flex: 1;
}

/* Payment Modal */
.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.payment-amount {
    font-size: 24px;
    color: var(--gold);
    margin-top: 16px !important;
}

.payment-options h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

.payment-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-option input:checked+.option-content {
    background: rgba(184, 150, 12, 0.15);
    border-color: var(--gold);
}

.option-content i {
    font-size: 24px;
    color: var(--gold);
}

.option-content span {
    color: #fff;
    font-weight: 600;
}

/* Rejection Modal */
.rejection-reasons {
    margin-bottom: 24px;
}

.rejection-reasons h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

.reason-option {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.reason-option input {
    margin-right: 12px;
}

.reason-option span {
    color: rgba(255, 255, 255, 0.8);
}

.rejection-message label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.rejection-message textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.rejection-message textarea:focus {
    outline: none;
    border-color: rgba(184, 150, 12, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 150, 12, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* Check-in Prompt */
.prompt-icon {
    background: rgba(184, 150, 12, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.prompt-icon i {
    font-size: 36px;
    color: var(--gold);
}

.modal-small h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}

.modal-small p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.modal-small strong {
    color: var(--gold);
}

.prompt-buttons {
    display: flex;
    gap: 12px;
}

.btn-skip {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-checkin {
    flex: 1;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 150, 12, 0.4);
}