/* ethioareb/assets/css/ethioareb.css - CMS Styles */

/* ============================================================
   CUSTOM STYLES FOR CMS
   ============================================================ */

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1F2937;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar .brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .brand h1 {
    color: white;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
}

.sidebar .brand span {
    color: #D4AF37;
}

.sidebar .brand p {
    color: #9CA3AF;
}

.sidebar .nav-link {
    color: #9CA3AF;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: #D4AF37;
}

.sidebar .nav-link i {
    width: 20px;
}

.sidebar .badge {
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #F9FAFB;
}

.main-content .topbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-content .content {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block !important;
    }
}

.sidebar-toggle {
    display: none;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #0B3D91;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-control-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow-x: auto;
}

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

.table-container th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-container td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9rem;
}

.table-container tr:hover td {
    background: #F9FAFB;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Buttons */
.btn-primary {
    background: #0B3D91;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #092c6e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 61, 145, 0.3);
    color: white;
}

.btn-danger {
    background: #EF4444;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

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

.btn-success {
    background: #22C55E;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-success:hover {
    background: #16A34A;
    color: white;
}

.btn-warning {
    background: #F59E0B;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

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

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    border: 1px solid #93C5FD;
    color: #1E40AF;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* File Upload */
.file-upload-wrapper {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: #0B3D91;
    background: rgba(11, 61, 145, 0.02);
}

.file-upload-wrapper .icon {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.file-upload-wrapper .text {
    color: #6B7280;
    font-size: 0.9rem;
}

.file-upload-wrapper .text strong {
    color: #0B3D91;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        padding: 0.5rem;
    }
    .table-container th,
    .table-container td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    .modal-box {
        padding: 1.5rem;
        margin: 1rem;
    }
}