/* Cross Friends Admin Panel Styles */

/* Sidebar Styles */
.sidebar-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    text-left;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.sidebar-btn.active {
    background: #3b82f6;
    color: white;
}

.sidebar-btn i {
    width: 20px;
    text-align: center;
}

/* Card Styles for Admin */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.admin-card-header {
    padding: 20px 24px 0 24px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

.admin-card-body {
    padding: 0 24px 24px 24px;
}

/* Status Badges for Admin */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-suspended {
    background: #f3e8ff;
    color: #7c2d12;
}

.status-verified {
    background: #dbeafe;
    color: #1e40af;
}

/* Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 14px;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Button Styles for Admin */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: #3b82f6;
    color: white;
}

.admin-btn-primary:hover {
    background: #2563eb;
}

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

.admin-btn-success:hover {
    background: #059669;
}

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

.admin-btn-warning:hover {
    background: #d97706;
}

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

.admin-btn-danger:hover {
    background: #dc2626;
}

.admin-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.admin-btn-secondary:hover {
    background: #e5e7eb;
}

.admin-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* Form Styles for Admin */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.admin-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.admin-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.admin-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: #6b7280;
}

/* Modal Styles for Admin */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.admin-modal-overlay.active .admin-modal-content {
    transform: scale(1);
}

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

.admin-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.admin-modal-close:hover {
    color: #374151;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    space-x: 4px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination-btn:hover {
    background: #f3f4f6;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search and Filter Bar */
.search-filter-bar {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 10px 40px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Notification Styles */
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.notification-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Activity Log Styles */
.log-entry {
    display: flex;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.log-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.log-icon.create {
    background: #dcfce7;
    color: #166534;
}

.log-icon.update {
    background: #dbeafe;
    color: #1e40af;
}

.log-icon.delete {
    background: #fee2e2;
    color: #991b1b;
}

.log-icon.login {
    background: #f3e8ff;
    color: #7c2d12;
}

.log-content {
    flex: 1;
}

.log-action {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.log-details {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.log-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-card-header,
    .admin-card-body {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .admin-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode .admin-card {
        background: #374151;
        color: #f9fafb;
    }
    
    .dark-mode .admin-table th {
        background: #4b5563;
        color: #f9fafb;
    }
    
    .dark-mode .admin-form-input {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .admin-btn,
    .pagination {
        display: none !important;
    }
    
    .admin-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}