/* Admin Panel Specific Styles */

/* Login Page */
.login-body {
    background: #0a0e1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-bg-decoration {
    display: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 28rem;
    max-width: 100%;
    padding: 3rem 2.5rem;
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #10b981;
    border-radius: 1rem 1rem 0 0;
}

.login-symbol {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: #34d399;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #a0aec0;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.login-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 400;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-label svg {
    color: #34d399;
}

.btn-login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
}

.btn-login-submit svg {
    transition: transform 0.3s ease;
}

.btn-login-submit:hover svg {
    transform: translateX(4px);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.login-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #34d399;
}

/* Alert Styles */
#alertContainer {
    margin-bottom: 1.5rem;
}

/* Dashboard Styles */
.navbar {
    background-color: var(--bg-dark-secondary);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-user {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dashboard-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-dark-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.875rem;
    font-weight: 700;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: block;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    text-align: center;
    transition: background-color 0.2s;
}

.quick-link:hover {
    background-color: var(--primary-dark);
}

.quick-link.secondary {
    background-color: var(--secondary);
}

.quick-link.secondary:hover {
    background-color: var(--secondary-dark);
}

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

.info-item {
    padding: 0.75rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-active {
    color: #86EFAC;
}

.status-inactive {
    color: #FCA5A5;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-symbol {
        font-size: 2.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

/* Export Page Styles */
.export-section {
    padding: 2rem;
}

.export-container {
    max-width: 1200px;
}

.export-header {
    margin-bottom: 3rem;
}

.export-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.export-header p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.export-option {
    cursor: pointer;
}

.export-option input[type="radio"] {
    display: none;
}

.option-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 2px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.export-option input[type="radio"]:checked+.option-card {
    border-color: #34d399;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.option-card:hover {
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.15);
}

.option-icon {
    color: #34d399;
    margin-bottom: 1rem;
}

.option-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.option-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.option-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.export-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-export-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-export-secondary {
    background: rgba(31, 41, 55, 0.6);
    color: #9ca3af;
    border: 1px solid rgba(75, 85, 99, 0.3);
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export-secondary:hover {
    background: rgba(31, 41, 55, 0.8);
    color: #e5e7eb;
    border-color: rgba(52, 211, 153, 0.3);
}

.export-info {
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.info-card svg {
    color: #34d399;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #34d399;
}

/* Migrations Page Styles */
.migrations-section {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.placeholder-container {
    max-width: 600px;
    text-align: center;
    padding: 3rem;
}

.placeholder-icon {
    color: #34d399;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.placeholder-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.placeholder-container>p {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.placeholder-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.placeholder-features {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.placeholder-features h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    text-align: center;
}

.placeholder-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.placeholder-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: #9ca3af;
    font-size: 0.95rem;
}

.placeholder-features li svg {
    color: #34d399;
    flex-shrink: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Responsive for Export and Migrations */
@media (max-width: 768px) {
    .export-options {
        grid-template-columns: 1fr;
    }

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