/**
 * Admin Panel Styles
 * Specific styles for admin dashboard and management pages
 */

/* ============================================
   ADMIN SIDEBAR
   ============================================ */
.admin-sidebar {
    background: linear-gradient(135deg, #1a472a 0%, #0d2818 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .logo h4 {
    color: white;
    margin-bottom: 0;
}

.admin-sidebar .logo small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: white;
}

.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.admin-sidebar.collapsed .nav-link span {
    display: none;
}

.admin-sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* ============================================
   ADMIN MAIN CONTENT
   ============================================ */
.admin-main {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: var(--transition);
}

.admin-main.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* ============================================
   STATS CARDS
   ============================================ */
.admin-stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.admin-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.admin-stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-stats-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ============================================
   DATA TABLES
   ============================================ */
.data-table-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* ============================================
   ADMIN FORMS
   ============================================ */
.admin-form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

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

.admin-form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark-color);
}

.admin-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ============================================
   RUBRIC TREE (Admin)
   ============================================ */
.rubric-tree-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.rubric-node {
    margin: 2px 0;
}

.rubric-children {
    margin-left: 30px;
}

.rubric-item {
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.rubric-item:hover {
    background: #f0f0f0;
}

.rubric-actions {
    display: flex;
    gap: 5px;
}

.rubric-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* ============================================
   SYSTEM HEALTH
   ============================================ */
.health-check-item {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.health-check-passed {
    color: #28a745;
}

.health-check-failed {
    color: #dc3545;
}

.health-check-warning {
    color: #ffc107;
}

/* ============================================
   BACKUP LIST
   ============================================ */
.backup-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backup-item:hover {
    background: #e8f5e9;
}

/* ============================================
   PLAN CARDS
   ============================================ */
.plan-card {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background: #e8f5e9;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-color);
    margin: 15px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.plan-features li {
    padding: 5px 0;
    font-size: 13px;
}