/* Base styles */
:root {
    --primary-color: #009688;
    --primary-dark: #00796b;
    --accent-color: #4db6ac;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-radius: 0.5rem;
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9fafb;
    line-height: 1.6;
}

.content {
    min-height: calc(100vh - 300px);
    flex: 1 0 auto;
    padding: 1.5rem 0 3rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.app-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    padding: 8px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item {
    margin-left: 5px;
    margin-right: 5px;
}

/* Navbar auth buttons */
.navbar .btn-link {
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar .btn-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar .btn-outline-light {
    border-width: 1.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar .btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px;
}

.dropdown-item {
    border-radius: 5px;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.dropdown-item:active {
    background-color: var(--primary-color);
}

.dropdown-item:hover {
    background-color: rgba(33, 134, 235, 0.1);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.02);
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.015);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Forms */
.form-control {
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.2);
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 150, 136, 0.25);
}

.btn-success {
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

/* Hero section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    color: white;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer a {
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

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

.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 10px;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Utilities */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Text utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-clamp: 2;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-clamp: 3;
}

.nav-link,
.navbar-brand {
    transition: color 0.2s ease;
}

/* Responsive adaptations */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col,
    .col-md-4,
    .col-md-6,
    .col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .form-control {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.95rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .content {
        padding: 1rem 0 2rem 0;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }
}

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

.dropdown-item:active {
    background-color: var(--primary-color);
}