/* GLOBAL VARIABLES */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* --- SERVICE CARDS (Homepage/Dashboard) --- */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color);
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* --- ADMIN SIDEBAR LAYOUT --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--dark-bg);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar.active {
    margin-left: calc(var(--sidebar-width) * -1);
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .nav-link:hover, 
#sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* Mobile Adjustments for Sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
    }
    #sidebar.active {
        margin-left: 0;
    }
}

/* --- GENERAL UTILITIES --- */
.bg-gradient-primary {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
}

.card-header-custom {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* File Upload Preview Zone */
.preview-zone img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-top: 10px;
    padding: 5px;
}