/* Clean Modern Bootstrap 5 Header Styles for Notika */
/* Simple, stable implementation without positioning conflicts */

.notika-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1090;
}

.notika-brand img {
    height: 40px;
    width: auto;
    transition: all 0.2s ease;
}

.notika-brand:hover img {
    transform: scale(1.02);
}

/* Logo variants for different themes */
.notika-brand .logo-light {
    display: block;
}

.notika-brand .logo-dark {
    display: none;
}

/* Dark theme logo switching */
@media (prefers-color-scheme: dark) {
    .notika-brand .logo-light {
        display: none;
    }
    
    .notika-brand .logo-dark {
        display: block;
    }
}

/* Custom dark mode class */
.dark-theme .notika-brand .logo-light {
    display: none;
}

.dark-theme .notika-brand .logo-dark {
    display: block;
}

.notika-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-end;
}

.notika-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #666;
    font-size: 18px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.notika-nav-link:hover {
    background: #f8f9fa;
    color: #00c292;
}

.notika-nav-link:focus {
    box-shadow: 0 0 0 3px rgba(0, 194, 146, 0.2);
    outline: none;
}

/* Badge for notifications */
.notika-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Simple Modern Dropdown Styles - Let Bootstrap handle positioning */
.notika-dropdown {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
    min-width: 320px;
    border: none;
}

.notika-dropdown-header {
    background: linear-gradient(135deg, #00c292, #00a085);
    color: white;
    padding: 16px 20px;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.notika-dropdown-body {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

.notika-dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s ease;
    border: none;
    width: 100%;
    background: none;
    text-align: left;
    cursor: pointer;
}

.notika-dropdown-item:hover {
    background: #f8f9fa;
    color: #00c292;
}

.notika-dropdown-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.notika-dropdown-content h6 {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.notika-dropdown-content p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.notika-dropdown-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.notika-dropdown-footer a {
    color: #00c292;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.notika-dropdown-footer a:hover {
    color: #00a085;
    text-decoration: underline;
}

/* Search Dropdown */
.search-dropdown {
    min-width: 300px;
    padding: 16px;
}

.search-input-group {
    position: relative;
}

.search-input-group input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.search-input-group input:focus {
    border-color: #00c292;
    box-shadow: 0 0 0 3px rgba(0, 194, 146, 0.1);
    outline: none;
}

.search-input-group .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* Tasks Progress */
.task-progress {
    margin: 8px 0 4px 0;
}

.task-progress .progress {
    height: 6px;
    border-radius: 3px;
    background: #f0f0f0;
    overflow: hidden;
}

.task-progress .progress-bar {
    border-radius: 3px;
    background: linear-gradient(90deg, #00c292, #00a085);
}

.task-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.task-item:last-child {
    border-bottom: none;
}

.task-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Chat Status */
.chat-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid white;
    border-radius: 50%;
}

/* Mobile Responsive with Logo Variants */
@media (max-width: 768px) {
    .notika-nav {
        gap: 8px;
    }
    
    .notika-nav-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .notika-dropdown {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }
    
    .notika-dropdown-content p {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .notika-header {
        padding: 10px 0;
    }
    
    .notika-nav {
        gap: 5px;
    }
    
    .notika-nav-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .notika-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
    
    /* Switch to mobile logo on small screens */
    /* Logo is handled by responsive img tags in HTML - no CSS overrides needed */
}