.carousel-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    /* Ensures the image is fully visible without cropping */
}

/* Optional: Ensure the slider section itself doesn't have a fixed height if any */
.slider-section {
    height: auto !important;
}

/* =========================================
   Auth Page Styles (login.twig)
   ========================================= */

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    /* body arkaplanı başka sayfalarda beyaz kalabilir, login sayfası beyaz background kullanıyor zaten */
}

.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-left {
    flex: 0 0 50%;
    width: 50%;
    background: radial-gradient(circle, #169369 0%, #0d243f 100%);
    background-size: 300% 300%;
    animation: radialTransition 12s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes radialTransition {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.orb-auth-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #169369;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    top: 5%;
    left: 5%;
}

.orb-auth-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #021f41;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    bottom: 10%;
    right: 10%;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    z-index: 10;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 1px;
}

.split-right {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.auth-group {
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    cursor: pointer;
}

.forgot-pw {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pw:hover {
    text-decoration: underline;
}

/* Replaced by .btn-st common class 
.auth-btn removed */

.error-alert {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media(max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .split-left {
        padding: 4rem 1rem;
        flex: 1 1 auto;
        width: 100%;
    }

    .split-right {
        padding: 3rem 1.5rem;
        align-items: flex-start;
        flex: 1 1 auto;
        width: 100%;
    }

    .brand-name {
        font-size: 2.5rem;
    }
}

/* =========================================
   Modern Navbar Styles
   ========================================= */

.modern-navbar {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.modern-navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.modern-navbar .brand-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.modern-navbar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link.active {
    color: #0f172a !important;
}

.modern-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-link.active::after {
    width: 80%;
}

/* Common Button Styles */
.btn-st {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-st:hover:not(:disabled) {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.btn-st:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-st-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-st-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

.btn-st-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

body.has-navbar {
    /* No padding-top needed for sticky-top */
}

/* =========================================
   Modern Footer Styles
   ========================================= */

.modern-footer {
    background: radial-gradient(circle, #169369 0%, #0d243f 100%);
    background-size: 300% 300%;
    animation: radialTransition 12s ease infinite;
    color: #f8fafc;
    border-top: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

/* Pseudo-element gradient effect can be removed or kept. I'll remove it as the base is already a rich gradient. */
.modern-footer::before {
    display: none;
}

.modern-footer .container {
    position: relative;
    z-index: 1;
}

.modern-footer .brand-text-footer {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-footer .text-muted {
    color: #94a3b8 !important;
    font-weight: 400;
    line-height: 1.6;
}

.modern-footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-footer .social-icons a:hover {
    background-color: #3b82f6;
    color: #ffffff !important;
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.modern-footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   Landing Page (index.twig) Styles
   ========================================= */

/* Hero Section */
.hero-section {
    background: #f8fafc;
    min-height: 100vh;
    /* Extend to full viewport since navbar floats */
    display: flex;
    align-items: center;
}

.fw-black {
    font-weight: 900;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-success-soft {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-purple-soft {
    background-color: rgba(139, 92, 246, 0.1);
}

.text-purple {
    color: #8b5cf6;
}

.shadow-primary {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

/* glow button code removed as it's replaced by btn-st hover state */
/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: rgba(59, 130, 246, 0.2);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: rgba(139, 92, 246, 0.15);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Features */
.bg-light-soft {
    background-color: #ffffff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* CTA Section */
.cta-section {
    background-color: #0f172a;
}

.cta-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #3b82f6 0%, transparent 60%),
        radial-gradient(circle at bottom left, #8b5cf6 0%, transparent 60%);
    opacity: 0.4;
    z-index: 0;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* =========================================
   Dashboard (offer/dashboard.twig) Styles
   ========================================= */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1040;
    position: fixed;
    height: 100vh;
}

.dashboard-sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0f172a;
    font-size: 1.25rem;
    gap: 0.75rem;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    gap: 1rem;
}

.menu-link:hover,
.menu-item.active .menu-link {
    background-color: #f8fafc;
    color: #3b82f6;
}

.menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease;
}

.dashboard-main.expanded {
    margin-left: 80px;
}

.dashboard-header {
    background: transparent;
}

.dashboard-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Custom Table */
.custom-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table td {
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc;
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        width: 260px !important;
        transform: translateX(-100%);
    }

    .dashboard-sidebar:not(.collapsed) {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    }

    .dashboard-main {
        margin-left: 0 !important;
        padding: 1.25rem !important;
    }
}

/* =========================================
   Quill Editor Custom Styles
   ========================================= */
#editor-container {
    font-size: 1rem;
}

#editor-container.editor-settings .ql-editor,
#editor-container.editor-settings .custom-html-editor {
    min-height: 350px;
    max-height: 600px;
}

#editor-container.editor-offer .ql-editor,
#editor-container.editor-offer .custom-html-editor {
    min-height: 250px;
    max-height: 500px;
}

.ql-toolbar {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #f8f9fa;
}

.ql-container {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* =========================================
   Quill Content & Public View Formatting
   ========================================= */
.contract-content img,
.ql-editor img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem 0;
    border-radius: 0.375rem;
}

.contract-content .ql-align-center {
    text-align: center;
}

.contract-content .ql-align-justify {
    text-align: justify;
}

.contract-content .ql-align-right {
    text-align: right;
}

.contract-content .ql-indent-1 {
    padding-left: 3rem;
}

.contract-content .ql-indent-2 {
    padding-left: 6rem;
}

.contract-content .ql-indent-3 {
    padding-left: 9rem;
}

.contract-content .ql-indent-4 {
    padding-left: 12rem;
}

.contract-content .ql-indent-5 {
    padding-left: 15rem;
}

.contract-content .ql-indent-6 {
    padding-left: 18rem;
}

.contract-content .ql-indent-7 {
    padding-left: 21rem;
}

.contract-content .ql-indent-8 {
    padding-left: 24rem;
}

.contract-content blockquote {
    border-left: 4px solid #dee2e6;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.contract-content .ql-video,
.ql-editor .ql-video {
    display: block;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.375rem;
    margin: 1rem 0;
}