/* DoganSystems - Modern Enterprise Theme */

:root {
    --ds-primary: #0d6efd;
    --ds-secondary: #6c757d;
    --ds-success: #198754;
    --ds-info: #0dcaf0;
    --ds-warning: #ffc107;
    --ds-danger: #dc3545;
    --ds-dark: #212529;
    --ds-light: #f8f9fa;
    --ds-sidebar-bg: #1e293b;
    --ds-sidebar-text: #94a3b8;
    --ds-sidebar-active: #3b82f6;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
}

/* Sidebar Navigation */
.sidebar {
    background: linear-gradient(180deg, var(--ds-sidebar-bg) 0%, #0f172a 100%);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: var(--ds-sidebar-text);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 12px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: var(--ds-sidebar-active);
    color: #fff;
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

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

/* Top Navbar */
.top-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 18px 20px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #64748b;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    border-radius: 0 16px 0 100%;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ds-dark);
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 14px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 100%;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--ds-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ABP Specific Overrides */
.abp-application-layout {
    background-color: #f1f5f9;
}

/* Menu Styling */
ul {
    list-style: none;
    padding-left: 0;
}

nav ul li {
    margin-bottom: 5px;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: #e9ecef;
    color: var(--ds-primary);
}
