/* DSV x Schenker - Winning as One Theme */
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dsv-blue: #003d7a;
    --dsv-light-blue: #0066cc;
    --dsv-accent-blue: #4a90e2;
    --dsv-sky-blue: #e3f2fd;
    --professional-white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #bfdbfe;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dsv-accent-blue);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #003d7a 0%, #0052a3 50%, #0066cc 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background: var(--dsv-light-blue);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 61, 122, 0.2);
}

.btn-primary:hover {
    background: var(--dsv-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 61, 122, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--dsv-blue);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-cancel {
    background: var(--gray-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #374151;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dsv-blue);
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--dsv-light-blue) 0%, var(--dsv-accent-blue) 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 61, 122, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.2);
    border-color: var(--dsv-light-blue);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 61, 122, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.2);
    border-color: var(--dsv-accent-blue);
}

.team-card-header {
    background: linear-gradient(135deg, var(--dsv-blue) 0%, var(--dsv-light-blue) 100%);
    padding: 2rem;
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin: 0 auto;
}

.team-card-body {
    padding: 1.5rem;
}

/* Manager Card (Featured) */
.team-card-manager {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 61, 122, 0.12);
    border: 3px solid var(--dsv-light-blue);
    margin-bottom: 2rem;
}

.team-card-header-manager {
    background: linear-gradient(135deg, var(--dsv-blue) 0%, var(--dsv-light-blue) 100%);
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.team-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.manager-badge {
    background: linear-gradient(135deg, var(--dsv-light-blue) 0%, var(--dsv-accent-blue) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.25);
}

.team-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--dsv-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: #005885;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 61, 122, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--dsv-light-blue);
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-left: 4px solid var(--dsv-light-blue);
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(0, 61, 122, 0.15);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-planned {
    background: #fef3c7;
    color: #92400e;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--dsv-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: var(--dsv-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.filter-tab:hover {
    color: var(--dsv-blue);
}

.filter-tab.active {
    color: var(--dsv-blue);
    border-bottom-color: var(--dsv-light-blue);
}

/* Stats Card */
.stat-card {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--dsv-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.action-btn-edit {
    background: var(--dsv-light-blue);
    color: white;
}

.action-btn-edit:hover {
    background: var(--dsv-blue);
}

.action-btn-delete {
    background: var(--schenker-red);
    color: white;
}

.action-btn-delete:hover {
    background: #c50510;
}

.action-btn-view {
    background: var(--gray-600);
    color: white;
}

.action-btn-view:hover {
    background: #374151;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dsv-blue) 0%, var(--dsv-light-blue) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #bfdbfe;
}

/* Search and Filter Bar */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--dsv-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }
}

/* Utility Classes */
.text-dsv-blue {
    color: var(--dsv-blue);
}

.text-dsv-orange {
    color: var(--dsv-orange);
}

.bg-dsv-blue {
    background-color: var(--dsv-blue);
}

.bg-dsv-orange {
    background-color: var(--dsv-orange);
}

/* ========================================
   IMPROVED TEXT CONTRAST FOR DARK BACKGROUNDS
   ======================================== */

/* Override low-contrast cyan/teal colors on dark backgrounds */
.text-dsv-cyan,
[class*="text-dsv-cyan"],
[class*="text-cyan"],
[class*="text-teal"] {
    color: #67e8f9 !important; /* Brighter cyan for better contrast */
}

/* Make muted text more readable on dark backgrounds */
.text-white\/40,
[class*="text-white/40"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-white\/50,
[class*="text-white/50"] {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\/60,
[class*="text-white/60"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-white\/70,
[class*="text-white/70"] {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Blue shades - make more visible */
.text-blue-200 {
    color: #bfdbfe !important;
}

.text-blue-300 {
    color: #93c5fd !important;
}

/* Improve dsv-glow for visibility */
.text-dsv-glow {
    color: #93c5fd !important;
}

/* Better emerald/teal on dark */
.text-emerald-300,
.text-teal-300 {
    color: #6ee7b7 !important;
}

.text-emerald-400,
.text-teal-400 {
    color: #34d399 !important;
}

/* Session/audit info text - make it white for readability */
.session-info-text,
.audit-info-text,
.completed-info {
    color: #ffffff !important;
}

/* Sub-text on dark backgrounds */
.sub-text-dark {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--dsv-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dsv-light-blue);
}

/* Custom Notifications */
.custom-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 61, 122, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    min-width: 320px;
    max-width: 420px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(500px);
        opacity: 0;
    }
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-center;
}

.custom-notification.success .notification-icon {
    background: #d1fae5;
    color: #065f46;
}

.custom-notification.error .notification-icon {
    background: #fee2e2;
    color: #991b1b;
}

.custom-notification.warning .notification-icon {
    background: #fef3c7;
    color: #92400e;
}

.custom-notification.info .notification-icon {
    background: var(--dsv-sky-blue);
    color: var(--dsv-blue);
}

.notification-content {
    flex: 1;
}

.notification-message {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.custom-notification.success {
    border-left: 4px solid #10b981;
}

.custom-notification.error {
    border-left: 4px solid #ef4444;
}

.custom-notification.warning {
    border-left: 4px solid #f59e0b;
}

.custom-notification.info {
    border-left: 4px solid var(--dsv-light-blue);
}

/* Loading Overlay with Progress */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 61, 122, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.progress-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 12;
}

.progress-ring-progress {
    fill: none;
    stroke: #4ade80;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: center;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-align: center;
}

.loading-dice {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: dice-bounce 1s ease-in-out infinite;
}

@keyframes dice-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}

.loading-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.loading-step.active {
    color: white;
}

.loading-step.completed {
    color: #4ade80;
}

.loading-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.loading-step.active .loading-step-icon {
    background: white;
    color: var(--dsv-blue);
    border-color: white;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.loading-step.completed .loading-step-icon {
    background: #4ade80;
    border-color: #4ade80;
    color: white;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

