/* Additional CSS to ensure OCENOX styling works correctly in myOCENOX */

/* CORRECT OCENOX CSS Variables according to CI Guide */
:root {
    --primary-dark-gray: #404040;
    --primary-blue: #295F7C;
    --highlight-blue: #3B8AB4;
    /* Legacy variables for compatibility */
    --maincolor: #295F7C;
    --secondcolor: #404040;
    --fifthcolor: #3B8AB4;
    --fourthcolor: #404040;
}

/* Navbar Logo Sizing - Force to correct size */
.navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
}

/* myOCENOX Brand Styling */
.myocenox-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
}

/* Profile Photo Enhanced Styling */
.profile-photo-container {
    position: relative;
}

.webcam-container {
    border: 2px solid var(--primary-blue);
    border-radius: 0.375rem;
    overflow: hidden;
}

.photo-preview-container {
    border: 2px solid var(--highlight-blue);
    border-radius: 0.375rem;
    overflow: hidden;
}

.webcam-controls {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Rich Text Editor Enhancements */
.rich-text-container {
    position: relative;
}

.character-counter {
    font-size: 0.75rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #fd7e14;
}

.character-counter.danger {
    color: #dc3545;
}

/* Profile Card Enhancements - CI COMPLIANT */
.profile-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.profile-card .card-header {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Webcam Capture Button Styling - CI COMPLIANT */
.webcam-btn {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border: none;
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.webcam-btn:hover {
    background-color: var(--highlight-blue) !important;
    background: var(--highlight-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Photo Preview Canvas Styling */
#photoCanvas {
    border: 2px solid var(--highlight-blue);
    border-radius: 0.375rem;
}

/* File Upload Drag and Drop */
.file-upload-area {
    border: 2px dashed var(--primary-blue);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--highlight-blue);
    background-color: rgba(59, 138, 180, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--highlight-blue);
    background-color: rgba(59, 138, 180, 0.1);
}

/* LOGIN PAGE STYLING - NO GRADIENTS */
.login-background {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    min-height: 100vh;
    position: relative;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/bg/abs-bg5.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
    max-height: 80px;
    width: auto;
}

.login-title {
    color: var(--primary-dark-gray);
    font-family: 'Montserrat', sans-serif;
}

.login-label {
    color: var(--primary-dark-gray);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.75rem;
}

.login-input {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.login-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(41, 95, 124, 0.25);
}

.login-password-toggle {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: #f8f9fa;
    color: var(--primary-dark-gray);
    transition: all 0.3s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.login-submit-btn {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 95, 124, 0.3);
    color: #ffffff !important;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 95, 124, 0.4);
    background-color: var(--highlight-blue) !important;
    background: var(--highlight-blue) !important;
}

.login-submit-btn:disabled {
    opacity: 0.7;
    transform: none;
}

.login-security-info {
    color: #6c757d;
    font-size: 0.875rem;
}

.login-help-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-help-link:hover {
    color: var(--highlight-blue);
    text-decoration: underline;
}

.login-back-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-back-link:hover {
    color: #f8f9fa !important;
    transform: translateX(-3px);
}

/* Language Switcher - Globe with Dropdown */
.language-switcher {
    position: relative;
}

.language-globe {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-dark-gray);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-globe:hover,
.language-globe:focus {
    background-color: rgba(41, 95, 124, 0.1);
    color: var(--primary-blue);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--primary-dark-gray);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.language-dropdown a:last-child {
    border-bottom: none;
}

.language-dropdown a:hover {
    background-color: var(--primary-blue);
    color: white;
}

.language-dropdown a.active {
    background-color: rgba(41, 95, 124, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Content wrapper */
.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Bootstrap overrides to match OCENOX */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary-dark-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-blue);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

/* Hero section styling with correct OCENOX colors and NO GRADIENTS */
.hero-section {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/bg/abs-bg5.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* CRITICAL: Button styling - NO GRADIENTS */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--highlight-blue) !important;
    background-image: none !important;
    background: var(--highlight-blue) !important;
    border-color: var(--highlight-blue) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(41, 95, 124, 0.3) !important;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #fff !important;
}

/* Typography hierarchy according to OCENOX CI Guide */
h1, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark-gray);
}

h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-dark-gray);
}

h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-dark-gray);
}

body, p, .lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--primary-dark-gray);
}

/* Ensure white text on dark backgrounds */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .login-card .card-body {
        padding: 2rem !important;
    }
    
    .login-logo {
        max-height: 60px;
    }
}

/* Footer styling with correct OCENOX colors */
footer {
    background-color: var(--primary-dark-gray) !important;
    background-image: url('/images/ocenox/footer-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(64, 64, 64, 0.8);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Force all footer text to be white */
footer,
footer *,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer a,
footer .text-muted,
footer li,
footer span,
footer div {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--highlight-blue) !important;
    text-decoration: underline;
}

/* Button styling for various contexts */
.btn-light {
    background-color: #fff !important;
    background-image: none !important;
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary-blue) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background-color: #f8f9fa !important;
    background-image: none !important;
    background: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--highlight-blue) !important;
    transform: translateY(-1px);
}

.btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: #fff !important;
    background-image: none !important;
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary-blue) !important;
}

/* Ensure proper spacing */
section {
    padding: 80px 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Profile Photo Drop Area */
#photoDropArea {
    border: 2px dashed var(--primary-blue);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#photoDropArea:hover {
    border-color: var(--highlight-blue);
    background-color: rgba(59, 138, 180, 0.05);
}

#photoDropArea.dragover {
    border-color: var(--highlight-blue);
    background-color: rgba(59, 138, 180, 0.1);
    transform: scale(1.02);
    border-style: solid;
}

#photoDropArea .drop-text {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

#photoDropArea .drop-icon {
    color: var(--primary-blue);
    font-size: 2rem;
}

/* Upload Progress Animation - NO GRADIENTS */
.upload-progress {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Text color adjustments */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Enhanced Navbar Responsiveness for German Menu Items */
@media (min-width: 992px) and (max-width: 1400px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    
    .navbar-nav .dropdown-menu {
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
}

/* Compact Menu Style for Tight Layouts */
.navbar-nav.compact {
    gap: 0.25rem;
}

.navbar-nav.compact .nav-link {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Icon spacing optimization */
.nav-link i {
    margin-right: 0.3rem !important;
}

/* User dropdown positioning fix */
.navbar-nav .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Better text wrapping prevention */
.navbar-nav .nav-link {
    white-space: nowrap;
}

/* Language switcher optimization */
.language-switcher {
    margin-left: 0.5rem;
}

@media (max-width: 1200px) {
    .language-switcher {
        margin-left: 0.25rem;
    }
}

/* CRITICAL: Force white text in all profile card headers */
.profile-card .card-header,
.profile-card .card-header *,
.profile-card .card-header h1,
.profile-card .card-header h2,
.profile-card .card-header h3,
.profile-card .card-header h4,
.profile-card .card-header h5,
.profile-card .card-header h6,
.profile-card .card-header p,
.profile-card .card-header span,
.profile-card .card-header div,
.profile-card .card-header .mb-0 {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
}
 
 