* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    min-height: 100vh;
    color: #f8fafc;
}

/* Login Screen Styles */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.8;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-group label {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-group input {
    padding: 15px 20px;
    border: 2px solid #475569;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

.login-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

/* Discord Login Styles */
.discord-login-section {
    text-align: center;
    padding: 20px 0;
}

.discord-login-section h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.discord-login-section p {
    color: rgba(241, 245, 249, 0.8);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.login-requirements {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.login-requirements h4 {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-requirements ul {
    list-style: none;
    padding: 0;
}

.login-requirements li {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.login-requirements li:last-child {
    border-bottom: none;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: #5865f2;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    min-width: 200px;
    justify-content: center;
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
    border-color: #6366f1;
}

.discord-login-btn:active {
    transform: translateY(0);
}

.discord-login-btn svg {
    width: 24px;
    height: 18px;
}

.login-info {
    margin-top: 15px !important;
    font-size: 0.85rem !important;
    color: rgba(241, 245, 249, 0.6) !important;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.admin-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 5px;
}

.admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-tertiary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.stat-number.pending {
    color: #f59e0b;
}

.stat-number.approved {
    color: #10b981;
}

.stat-number.rejected {
    color: #ef4444;
}

/* Filters */
.filters-container {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 1rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Applications Container */
.applications-container {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.applications-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.view-toggles {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 16px;
    background: #475569;
    border: none;
    border-radius: 6px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #60a5fa;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.application-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.card-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-position {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.position-helper {
    background: linear-gradient(135deg, #10b981, #059669);
}

.position-moderator {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-info {
    margin-bottom: 15px;
}

.card-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.card-info-label {
    opacity: 0.7;
}

.card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.status-approved {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.card-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Application Details */
.detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 4px solid #60a5fa;
}

.detail-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #60a5fa;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 5px;
}

.detail-value {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 6px;
    white-space: pre-wrap;
}

/* Settings */
.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
}

.setting-group h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #60a5fa;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.9;
}

.setting-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 15px;
}

.setting-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .filters-container {
        flex-direction: column;
    }

    .filter-group {
        min-width: unset;
    }

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

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .modal-footer {
        justify-content: stretch;
    }

    .modal-footer .btn {
        flex: 1;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(96, 165, 250, 0.3);
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.8;
}