/* Custom Styles for Service Portal */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 20px 20px;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

.service-icon {
    color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 56px);
    border-right: 1px solid #dee2e6;
}

.sidebar-sticky {
    position: sticky;
    top: 0;
}

.sidebar-category {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-category-title {
    color: #495057;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.sidebar-category-title:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.sidebar-category-title[aria-expanded="true"] {
    background-color: #e7f1ff;
    color: var(--primary-color);
}

.sidebar-category-title[aria-expanded="true"] .bi-chevron-right {
    transform: rotate(90deg);
}

.sidebar-category-title .bi-chevron-right {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.sidebar-sub-item {
    padding: 8px 20px 8px 40px;
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-sub-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 45px;
}

.sidebar-sub-item .bi-dot {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 5px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 56px);
    background-color: #ffffff;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: none;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* Modals */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .main-content {
        min-height: auto;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 1020;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .card-footer {
        display: none !important;
    }
}


