/* Custom CSS for Ausbildung Platform */

:root {
    /* Brand Colors */
    --brand-primary: rgb(88, 143, 129);      /* Main brand color - teal green */
    --brand-secondary: rgb(1, 47, 70);       /* Deep navy blue */
    --brand-light: rgba(88, 143, 129, 0.1);  /* Light teal for backgrounds */
    --brand-dark: rgba(1, 47, 70, 0.9);      /* Dark navy for text */
    
    /* Updated Bootstrap-compatible colors using brand palette */
    --primary-color: rgb(88, 143, 129);
    --secondary-color: rgb(1, 47, 70);
    --success-color: #198754;
    --info-color: rgba(88, 143, 129, 0.8);
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: rgb(1, 47, 70);
    
    /* Additional brand variations */
    --brand-gradient: linear-gradient(135deg, rgb(88, 143, 129), rgb(1, 47, 70));
    --brand-shadow: rgba(88, 143, 129, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-secondary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo and Branding */
.brand-logo {
    height: 35px;
    width: auto;
    max-width: 120px;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo-large {
    height: 120px;
    width: auto;
    max-width: 300px;
}

.brand-logo-footer {
    height: 30px;
    width: auto;
    max-width: 100px;
    filter: brightness(0) invert(1);
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Brand-themed components */
.btn-brand-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.btn-brand-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
}

.btn-brand-secondary {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
}

.btn-brand-secondary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

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

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
    color: white;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
    color: var(--brand-secondary);
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.border-brand-primary {
    border-color: var(--brand-primary) !important;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(88, 143, 129, 0.25);
}

/* Dashboard */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--brand-gradient);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px var(--brand-shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Profile Section */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Job Cards */
.job-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.job-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.job-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
    border: 1px solid #dee2e6;
}

.skill-tag.level-expert {
    background: var(--success-color);
    color: white;
}

.skill-tag.level-advanced {
    background: var(--info-color);
    color: white;
}

.skill-tag.level-intermediate {
    background: var(--warning-color);
    color: var(--dark-color);
}

.skill-tag.level-beginner {
    background: var(--secondary-color);
    color: white;
}

/* Status Badges */
.status-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-accepted {
    background-color: var(--success-color);
}

.status-rejected {
    background-color: var(--danger-color);
}

.status-under-review {
    background-color: var(--info-color);
}

/* Hero section with brand gradient */
.hero-section {
    background: var(--brand-gradient);
    color: white;
    padding: 4rem 0;
}

/* Navigation with brand theme */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px var(--brand-shadow);
}

.navbar-nav .nav-link {
    color: var(--brand-secondary) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-primary) !important;
}

/* Footer with brand theme */
.footer-brand {
    background-color: #34495e;  /* Sophisticated blue-gray that harmonizes with your teal and navy */
    color: white;
    padding: 3rem 0 2rem 0;
}

.footer-brand a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-brand a:hover {
    color: var(--brand-primary) !important;
}

.footer-brand h5, .footer-brand h6 {
    color: white;
}

.footer-brand hr {
    border-color: rgba(88, 143, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile logo adjustments */
    .brand-logo {
        height: 30px;
        max-width: 100px;
    }
    
    .brand-logo-large {
        height: 80px;
        max-width: 200px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .brand-logo {
        height: 25px;
        max-width: 80px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}
