/* Admin Panel Styles - No Demo Credentials Display */

.admin-login-card {
    max-width: 420px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.admin-logo i {
    font-size: 56px;
    color: #667eea;
    margin-bottom: 20px;
}

.admin-logo h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 24px;
}

.admin-logo p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Admin Panel */
.admin-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 30px;
    margin-top: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.admin-actions-top {
    display: flex;
    gap: 12px;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon i {
    font-size: 36px;
    color: white;
    opacity: 0.9;
}

.stat-info h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.stat-number {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f1f3f5;
    color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-section-header h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search */
.admin-search {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.admin-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.admin-search select {
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

/* Admin List */
.admin-list {
    max-height: 500px;
    overflow-y: auto;
}

.admin-item {
    background: #f9fafb;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.admin-item:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateX(4px);
}

.admin-item-info {
    flex: 1;
}

.admin-item-info strong {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.admin-item-info p {
    color: #666;
    font-size: 13px;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.admin-item-info small {
    color: #999;
    font-size: 11px;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn-small {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

/* JSON Editor */
.json-editor-container {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

.json-tabs {
    display: flex;
    background: #2d2d2d;
    padding: 8px;
    gap: 8px;
}

.json-tab-btn {
    padding: 8px 16px;
    background: #3d3d3d;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.json-tab-btn.active {
    background: #667eea;
    color: white;
}

.json-editor {
    width: 100%;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 15px;
    border: none;
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

.json-status {
    padding: 8px 15px;
    background: #2d2d2d;
    color: #9ca3af;
    font-size: 12px;
    font-family: monospace;
}

/* Settings */
.settings-group {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.settings-group h4 {
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
}

.setting-item {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.setting-item label {
    font-weight: 500;
    color: #495057;
}

.setting-item input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.info-item strong {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 850px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    color: #333;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
    padding: 0 25px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-warning { background: #f59e0b; }
.toast-info { background: #3b82f6; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-search {
        flex-direction: column;
    }
    
    .admin-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .admin-item-actions {
        justify-content: center;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-login-card {
        margin: 30px 20px;
        padding: 30px 20px;
    }
    
    .admin-panel {
        padding: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .admin-login-card {
        background: rgba(31, 41, 55, 0.98);
    }
    
    .admin-login-card h2 {
        color: #f3f4f6;
    }
    
    .admin-panel {
        background: rgba(31, 41, 55, 0.96);
    }
    
    .admin-header h2 {
        color: #f3f4f6;
    }
    
    .admin-section-header h3 {
        color: #f3f4f6;
    }
    
    .settings-group {
        background: #1f2937;
    }
    
    .settings-group h4 {
        color: #f3f4f6;
        border-bottom-color: #374151;
    }
    
    .info-item {
        background: #111827;
        border-color: #374151;
    }
    
    .info-item strong {
        color: #9ca3af;
    }
    
    .info-item span {
        color: #f3f4f6;
    }
    
    .admin-item {
        background: #1f2937;
        border-color: #374151;
    }
    
    .admin-item-info strong {
        color: #f3f4f6;
    }
    
    .admin-item-info p {
        color: #9ca3af;
    }
    
    .admin-search input,
    .admin-search select {
        background: #1f2937;
        border-color: #374151;
        color: #f3f4f6;
    }
    
    .modal-content {
        background: #1f2937;
    }
    
    .modal-header {
        border-bottom-color: #374151;
    }
    
    .modal-header h3 {
        color: #f3f4f6;
    }
    
    .form-group label {
        color: #9ca3af;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #111827;
        border-color: #374151;
        color: #f3f4f6;
    }
}