/* ProjeHome Modern Apartman Yönetim Sistemi - Modern CSS */

/* CSS Variables */
:root {
    --primary-color: #2D1B36;
    --blue-color: #007bff;
    --secondary-color: #4a3454;
    --accent-color: #6c5ce7;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e17055;
    --info-color: #74b9ff;
    --dark-color: #2d3436;
    --purple-color: #9b59b6;
    --pink-color: #e91e63;
    --orange-color: #ff9800;
    --teal-color: #009688;
    --indigo-color: #3f51b5;
    --cyan-color: #00bcd4;
    --lime-color: #8bc34a;
    --amber-color: #ffc107;
    --brown-color: #795548;
    --grey-color: #607d8b;
    --light-color: #ddd6fe;
    --white: #ffffff;
    --hero-title-color: #007bff; /* Ana sayfa başlık rengi */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --flip-transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Modern Navbar */
.navbar {
    background: var(--primary-color) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    z-index: 1030;
    position: relative;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

.navbar-brand img.site-logo {
    height: 50px;
    width: auto;
    margin-right: 1rem;
    transition: all var(--transition-normal);
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Dropdown Menu Z-Index Fix */
.dropdown-menu {
    z-index: 1040 !important;
}

.navbar .dropdown-menu {
    z-index: 1040 !important;
}

/* Modern Hero/Slider Section */
.carousel {
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Slider Opacity Control */
.carousel-item {
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    transition: opacity 0.6s ease-in-out;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

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

.hero-section h1 {
    color: white;
}

.hero-section p {
    color: white;
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 54, 0.3);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.6;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    color: var(--primary-color);
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Modern Cards */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    background: #2D1B36;
    color: #2D1B36;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.feature-icon i {
    color: white !important;
}

/* Card header içindeki feature icon için özel stil */
.card-header .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Card header başlıkları için beyaz renk */
.card-header h3 {
    color: white !important;
}

/* Card header d-flex hizalama */
.card-header .d-flex {
    align-items: center;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* Modern Grid System */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.home-panel {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    background: var(--white);
    overflow: hidden;
}

.home-panel-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(45,27,54,1), rgba(108,92,231,0.95));
    color: var(--white);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
    position: relative;
}

.home-panel-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0));
    pointer-events: none;
}

.home-panel-header h3 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.home-panel-body {
    padding: 1.25rem 1.5rem;
}

.home-item { margin-bottom: 1rem; }
.home-item-title { font-weight: 600; }
.home-item-meta { color: var(--gray-600); font-size: 0.875rem; margin-bottom: 0.5rem; }
.home-item-text { color: var(--gray-700); line-height: 1.6; }

.list-group-modern { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.list-modern-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--dark-color);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.list-modern-item i { color: var(--accent-color); }
.list-modern-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Hover Effects */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Modern Footer */
footer {
    background: linear-gradient(180deg, #2D1B36 0%, #221433 100%);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1000px 400px at 20% 0%, rgba(255,255,255,0.05), transparent 70%),
                radial-gradient(800px 300px at 80% 0%, rgba(255,255,255,0.04), transparent 70%);
}

footer h5, footer h6 { color: rgba(255,255,255,0.95); }
footer p, footer small { color: rgba(255,255,255,0.75); }

footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all var(--transition-normal);
}

footer a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

footer .list-unstyled li { margin-bottom: 0.5rem; }
footer .list-unstyled a i { color: rgba(255,255,255,0.5); }

footer .contact-icon {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
}

/* Contact Page Styles */
.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #2D1B36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-icons .btn {
    transition: all 0.3s ease;
}

.social-icons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Announcements Page Styles */
.announcements-grid .card {
    transition: all 0.3s ease;
}

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

.announcement-date {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.announcement-content {
    line-height: 1.7;
    color: var(--text-color);
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    opacity: 0.6;
}

/* Login Page Styles */
.login-section {
    position: relative;
    overflow: hidden;
}

.login-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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.login-icon {
    position: relative;
    z-index: 1;
}

.divider {
    position: relative;
}

.divider hr {
    margin: 0;
    border-color: #dee2e6;
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Input Group Enhancements */
.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.input-group-text {
    border-color: #dee2e6;
}

/* Pagination Wrapper */
.pagination-wrapper .pagination {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination-wrapper .page-link {
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    background: white;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary-color);
    border: none;
    color: white;
}

/* Form Validation Styles */
.needs-validation .form-control:invalid {
    border-color: #dc3545;
}

.needs-validation .form-control:valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Toggle Password Button */
#togglePassword {
    border-left: none !important;
}

#togglePassword:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --radius-xl: 1rem;
        --radius-2xl: 1.25rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 95%;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 95%;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .carousel-caption .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-100: #1a1a1a;
        --gray-200: #2d2d2d;
        --white: #ffffff;
        --dark-color: #ffffff;
        --gray-800: #f8f9fa;
        --gray-600: #adb5bd;
    }
    
    body {
        background-color: var(--gray-100);
        color: var(--gray-800);
    }
    
    .card {
        background: var(--gray-200);
        color: var(--gray-800);
    }
}

/* Logo Size Classes for References - Removed !important to allow inline styles */
.reference-logo.logo-small {
    max-width: 60px;
    max-height: 60px;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.reference-logo.logo-medium {
    max-width: 100px;
    max-height: 100px;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.reference-logo.logo-large {
    max-width: 150px;
    max-height: 150px;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Default reference logo styles */
.reference-logo {
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem;
    box-shadow: var(--shadow-sm);
    object-fit: contain;
}

/* Removed hover effect - logos stay static */

/* Responsive reference logo sizing */
.reference-logo-placeholder {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: all var(--transition-normal);
    font-size: calc(0.8rem + 0.5vw);
    min-width: 60px;
    min-height: 60px;
}

/* Temiz ve Basit Referans Stilleri */
.reference-item {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.reference-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Basit Animasyon */
.reference-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Basit Responsive Grid */
@media (max-width: 768px) {
    .reference-item {
        padding: 1.5rem;
    }
    
    .reference-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}



/* Admin Panel Range Input Styles */
.form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    background-color: transparent;
    appearance: none;
    border: none;
}

.form-range::-webkit-slider-track {
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--blue-color));
    border-radius: 0.25rem;
    border: none;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background: var(--blue-color);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--blue-color));
    border-radius: 0.25rem;
    border: none;
}

.form-range::-moz-range-thumb {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background: var(--blue-color);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

.form-range + output {
    display: inline-block;
    margin-left: 10px;
    padding: 0.25rem 0.5rem;
    background-color: var(--blue-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* Print Styles */
@media print {
    .navbar,
    .carousel,
    footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
}

.reference-card {
    position: relative;
    display: block;
    height: 320px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--dark-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-decoration: none;
    will-change: transform;
}

.reference-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

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

.reference-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    image-rendering: auto;
    filter: contrast(1.08) saturate(1.06);
}

.reference-image.reference-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(0,123,255,0.35), rgba(0,0,0,0.75));
}

.reference-initials {
    color: var(--white);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1px;
    z-index: 2;
}

.reference-content {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
}

.reference-title {
    color: var(--white);
    margin: 0;
    max-width: calc(100% - 60px);
}

.reference-cta {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid var(--blue-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
}

.reference-card:hover .reference-cta {
    background: var(--blue-color);
    border-color: var(--blue-color);
}

@media (max-width: 992px) {
    .reference-card { height: 280px; }
}

@media (max-width: 576px) {
    .reference-card { height: 240px; }
}