/* RAZ Creative Studio Management System - Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.login-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--secondary-color);
    font-size: 14px;
}

.login-box .form-control {
    padding: 12px 15px;
    border-radius: 8px;
}

.login-box .input-group-text {
    background: var(--light-color);
    border-radius: 8px 0 0 8px;
}

.login-box .btn-primary {
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.login-box .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.sidebar.collapsed .sidebar-header h4,
.sidebar.collapsed .sidebar-header p {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 15px 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin: 2px 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li a.active {
    background: var(--primary-color);
}

.sidebar-menu li a i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu li a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-menu li a i {
    margin-right: 0;
}

/* Submenu Styles */
/* Category Header Styles */
.sidebar-category-header {
    padding: 15px 20px 5px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.category-header {
    padding: 15px 20px 5px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.sidebar.collapsed .category-header {
    display: none;
}

/* Static Submenu Styles */
.submenu-static {
    list-style: none;
    padding: 0;
}

.submenu-static li a {
    padding: 8px 15px 8px 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-static li a:hover,
.submenu-static li a.active {
    color: white;
}

.submenu-static li a i {
    font-size: 1.2rem; /* Increased from default dot size */
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .submenu-static li a {
    padding: 10px;
    justify-content: center;
}

.sidebar.collapsed .submenu-static li a span {
    display: none;
}

.sidebar.collapsed .submenu-static li a i {
    margin-right: 0;
    font-size: 1.5rem; /* Larger icon when collapsed */
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    font-size: 2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details span {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-footer .btn span {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar Styles */
.top-navbar {
    height: var(--navbar-height);
    background: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navbar .btn-link {
    color: var(--dark-color);
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 15px;
    color: var(--dark-color);
}

.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-right .btn-link {
    position: relative;
    font-size: 1.2rem;
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 2px 5px;
}

/* Content Area Styles */
.content-area {
    padding: 25px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stats-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stats-icon.success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.stats-icon.warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

.stats-icon.danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

.stats-icon.info {
    background: linear-gradient(135deg, var(--info-color), #22d3ee);
}

.stats-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stats-info p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

.badge-status {
    font-size: 0.75rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border-color: #e2e8f0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    padding-left: 40px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

/* Permissions Container */
.permissions-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.permission-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.permission-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.permission-group-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.permission-items {
    padding-left: 25px;
}

.permission-items .form-check {
    margin-bottom: 8px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h6 {
    margin-bottom: 3px;
    font-weight: 600;
}

.activity-content p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.activity-time {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-card-client {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.project-progress {
    margin: 15px 0;
}

.project-progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.project-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* Pagination */
.pagination {
    margin: 0;
}

.page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--dark-color);
    border: 1px solid #e2e8f0;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.filter-bar .form-select {
    width: auto;
    min-width: 150px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
}

/* Status Colors */
.status-pending { color: var(--warning-color); }
.status-in-progress { color: var(--info-color); }
.status-review { color: var(--primary-color); }
.status-completed { color: var(--success-color); }
.status-cancelled { color: var(--danger-color); }

.bg-pending { background-color: rgba(245, 158, 11, 0.1); }
.bg-in-progress { background-color: rgba(6, 182, 212, 0.1); }
.bg-review { background-color: rgba(99, 102, 241, 0.1); }
.bg-completed { background-color: rgba(16, 185, 129, 0.1); }
.bg-cancelled { background-color: rgba(239, 68, 68, 0.1); }

/* Settings Page */
.settings-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-section h5 {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* Profile Page */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 15px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .form-select,
    .filter-bar .search-box {
        width: 100%;
        max-width: none;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stats-info h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-navbar,
    .btn,
    .filter-bar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-area {
        padding: 0 !important;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
