/* Common Styles for YUJLINKS Admin */

:root {
    --sidebar-width: 250px;
    --topbar-height: 60px;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Layout Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #2c3e50;
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #1a252f;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background: #34495e;
}

#sidebar ul li.active > a {
    background: #34495e;
}

#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
    margin-left: var(--sidebar-width);
}

/* Topbar Styles */
.topbar {
    height: var(--topbar-height);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-content {
    padding: 20px;
    margin-top: var(--topbar-height);
}

/* Navigation Styles */
.navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item i {
    width: 20px;
}

/* Dropdown Styles */
.dropdown-menu {
    min-width: 200px;
    background-color: #2c3e50;
    border: none;
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-item {
    color: #fff;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #34495e;
    color: #fff;
}

.dropdown-item.active {
    background-color: #28a745;
    color: #fff;
}

.nav-link.dropdown-toggle {
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link.dropdown-toggle::after {
    margin-left: 8px;
}

.nav-link.dropdown-toggle:hover {
    background-color: #34495e;
}

/* Submenu Styles */
.submenu {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.submenu:hover {
    background-color: #e9ecef;
    border-left-color: #218838;
    transform: translateX(5px);
}

.submenu a {
    color: #495057;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.submenu a:hover {
    color: #28a745;
}

.submenu.active {
    background-color: #28a745;
    border-left-color: #218838;
}

.submenu.active a {
    color: white;
}

.submenu.active:hover {
    background-color: #218838;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.page-header h1 {
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-size: 1.25rem;
    margin: 0;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

.table td {
    color: #2c3e50;
    vertical-align: middle;
}

/* Button Styles */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Status Badge Styles */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-inactive {
    background-color: #f8d7da;
    color: #842029;
}

/* Service-specific header colors */
.service-header {
    border-left: 4px solid #0d6efd;
}

.service-specialization-header {
    border-left: 4px solid #ffc107;
}

.sub-service-header {
    border-left: 4px solid #28a745;
}

.service-module-header {
    border-left: 4px solid #0dcaf0;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

.form-control {
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Action Buttons */
.action-buttons .btn {
    margin-right: 0.25rem;
}

.action-buttons .btn:last-child {
    margin-right: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 0.75rem;
    }
    
    .table {
        font-size: 0.8125rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
    }
} 