/* Custom styles for Salgsveiledning Portal */

/* ToNull Branding Colors */
:root {
    --primary-color: #dc3545;
    --primary-dark: #b02a37;
    --primary-light: #f5c6cb;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --tonull-red: #dc3545;
    --tonull-dark-red: #b02a37;
    --tonull-light-red: #f5c6cb;
}

/* Login page styles - ToNull Branding */
body.bg-light {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 1rem;
}

.card-body {
    padding: 2rem;
}

/* Portal styles */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.15s ease-in-out;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(220, 53, 69, 0.15);
    border-left: 3px solid var(--primary-color);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-heading {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main content */
main {
    margin-left: 240px;
    transition: margin-left 0.15s ease-in-out;
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 56px;
        left: -240px;
        transition: left 0.15s ease-in-out;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    main {
        margin-left: 0;
    }
}

/* Dashboard cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Progress bars */
.progress-sm {
    height: 0.5rem;
}

/* Tables */
.table th {
    background-color: var(--light-color);
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Animations */
.card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Removed general card hover effect */

/* Responsive design improvements */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
}

/* Form improvements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

/* Removed general button hover effect */

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
