@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ========== Global & Root Styles ========== */
:root {
    /* Premium Decor Palette - Warm & Luxurious */
    /* Primary: A rich Bronze/Walnut for main actions */
    --primary-color: #8B5E3C;
    --primary-hover: #6D4830;

    /* Secondary: Deep Charcoal for text/navigation */
    --secondary-color: #2C2C2C;

    /* Accent: A soft Gold/Beige for highlights */
    --accent-color: #D4AF37;

    /* Backgrounds */
    --bg-body: #F9F8F6;
    /* Warm Off-White */
    --bg-surface: #FFFFFF;
    --bg-alt: #F2EFE9;
    /* Warm Light Grey/Beige */

    /* Text */
    --text-main: #2C2C2C;
    --text-muted: #6B6B6B;
    --text-on-primary: #FFFFFF;

    /* Borders */
    --border-color: #E6E2DD;

    /* UI Elements */
    --border-radius: 0.5rem;
    --btn-radius: 0.375rem;
    --padding: 1rem;

    /* Transitions & Shadows */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(44, 44, 44, 0.1), 0 2px 4px -1px rgba(44, 44, 44, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(44, 44, 44, 0.1), 0 4px 6px -2px rgba(44, 44, 44, 0.05);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* ========== Top Navigation Bar ========== */
.navbar-custom {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

/* Navbar Links */
.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background-color: var(--bg-alt);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(139, 94, 60, 0.1);
    /* 10% Primary */
    font-weight: 600;
}

/* ========== Main Layout ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 80px);
}

/* ========== Decor Components ========== */

/* Cards */
.card-shadcn-light {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-shadcn-light:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shadcn-padding {
    padding: 2rem;
}


/* Buttons - VERY CLEAR AND VISIBLE */
.btn {
    border-radius: var(--border-radius);
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border: 3px solid var(--primary-color);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(139, 94, 60, 0.5);
    transform: translateY(-2px);
    color: var(--text-on-primary);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.15);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.25);
}

/* Forms - STRONG VISIBLE BORDERS */
.form-label {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: block;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: var(--border-radius);
    border: 3px solid #C5BFB8;
    padding: 0.875rem 1.125rem;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary-color);
    border-width: 3px;
    background-color: #FFFBF7;
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Tables */
.table-shadcn {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-shadcn th {
    background-color: var(--bg-alt);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.table-shadcn td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-main);
}

.table-shadcn tr:last-child td {
    border-bottom: none;
}

.table-shadcn tr:hover td {
    background-color: #faf9f7;
}

/* Badges */
.badge-shadcn {
    padding: 0.4em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.badge-shadcn-light {
    background-color: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ========== App Specific ========== */

.logo {
    height: 36px;
    width: auto;
}

/* Custom Language Select */
.language-select-custom {
    border-radius: var(--border-radius);
    border: none !important;
    padding: 0.4rem 2rem 0.4rem 0.75rem !important;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent !important;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B6B6B' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}



[dir="rtl"] .language-select-custom {
    background-position: left 0.75rem center;
    padding: 0.4rem 0.75rem 0.4rem 2rem !important;
}

.language-select-custom:hover {
    color: var(--primary-color);
}

/* RTL Navbar Polish */
/* User Dropdown Alignment Fix */
.navbar-nav .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] .navbar-nav .dropdown-menu-end {
    left: 0 !important;
    right: auto !important;
}



/* Ensure dropdowns don't overflow screen width */
.dropdown-menu {
    max-width: 90vw;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

/* Kanban */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    height: calc(100vh - 160px);
}

.kanban-column {
    width: 340px;
    flex-shrink: 0;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.kanban-cards-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 1rem;
}

.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Utils */
.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

/* Landing Page Hero */
.hero-section {
    background-color: var(--bg-alt);
    padding: 8rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ========== Shadcn-Style Form Components ========== */

/* Form Container */
.form-shadcn-light {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
}

/* Labels */
.label-shadcn,
.label-shadcn-light {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

/* Input Fields */
.input-shadcn,
.input-shadcn-light {
    border-radius: var(--border-radius);
    border: 3px solid #C5BFB8;
    padding: 0.75rem 1rem;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    font-family: inherit;
}

.input-shadcn:focus,
.input-shadcn-light:focus {
    border-color: var(--primary-color);
    border-width: 3px;
    background-color: #FFFBF7;
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    outline: none;
}

.input-shadcn::placeholder,
.input-shadcn-light::placeholder {
    color: #999999;
}

/* Textarea */
.textarea-shadcn,
.textarea-shadcn-light {
    border-radius: var(--border-radius);
    border: 3px solid #C5BFB8;
    padding: 0.875rem 1.125rem;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
}

.textarea-shadcn:focus,
.textarea-shadcn-light:focus {
    border-color: var(--primary-color);
    border-width: 3px;
    background-color: #FFFBF7;
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    outline: none;
}

/* Select Dropdown */
.select-shadcn,
.select-shadcn-light {
    border-radius: var(--border-radius);
    border: 3px solid #C5BFB8;
    padding: 0.75rem 1rem;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    cursor: pointer;
}

.select-shadcn:focus,
.select-shadcn-light:focus {
    border-color: var(--primary-color);
    border-width: 3px;
    background-color: #FFFBF7;
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    outline: none;
}

/* Radio/Checkbox Labels */
.radio-shadcn,
.radio-shadcn-light,
.checkbox-shadcn,
.checkbox-shadcn-light {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.radio-shadcn input[type="checkbox"],
.radio-shadcn-light input[type="checkbox"],
.checkbox-shadcn input[type="checkbox"],
.checkbox-shadcn-light input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Shadcn-Style Buttons */
.btn-shadcn {
    border-radius: var(--border-radius);
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: 3px solid transparent;
}

.btn-shadcn-light-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.35);
}

.btn-shadcn-light-secondary:hover,
.btn-shadcn-light-secondary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(139, 94, 60, 0.5);
    transform: translateY(-2px);
    color: var(--text-on-primary);
}

.btn-shadcn-light-primary {
    background-color: var(--bg-surface);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.15);
}

.btn-shadcn-light-primary:hover,
.btn-shadcn-light-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.25);
    transform: translateY(-2px);
}

.btn-shadcn-danger {
    background-color: #FFFFFF;
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.btn-shadcn-danger:hover,
.btn-shadcn-danger:focus {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
    transform: translateY(-2px);
}


/* Alert/Validation Messages */
.alert-shadcn {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    border: 2px solid;
}

.alert-error-light {
    background-color: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}

.alert-success-light {
    background-color: #F0FDF4;
    border-color: #86EFAC;
    color: #166534;
}

.alert-warning-light {
    background-color: #FFFBEB;
    border-color: #FCD34D;
    color: #92400E;
}

.alert-info-light {
    background-color: #EFF6FF;
    border-color: #93C5FD;
    color: #1E40AF;
}

/* Utility Classes */
.shadcn-radius {
    border-radius: var(--border-radius);
}

.shadcn-padding {
    padding: 2rem;
}

/* Logo Title for Auth Pages */
.logo-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.logo-title .logo {
    height: 42px;
    width: auto;
}

/* ========== Project Actions Card ========== */

.action-success-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(139, 94, 60, 0.25);
    border: 3px solid var(--primary-color);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #A67C52 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 36px;
    line-height: 1;
}

.success-header h6 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.action-buttons-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: var(--bg-alt);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary-color);
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #5A3A24 100%);
}

.action-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5c636a 100%);
    color: white;
    border-color: #6c757d;
}

.action-btn-secondary:hover {
    background: linear-gradient(135deg, #5c636a 0%, #495057 100%);
}

.action-btn-share {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border-color: #7c3aed;
}

.action-btn-share:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.action-btn-done {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: white;
    border-color: var(--secondary-color);
}

.action-btn-done:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.btn-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.btn-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-hint {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
}

.auto-refresh-notice {
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-top: 2px solid #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #856404;
    font-weight: 600;
}

/* Responsive: 2 columns on wider screens */
@media (min-width: 400px) {
    .action-buttons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}



.icon-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #fff;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    font-size: 18px;
}

.icon-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.icon-action-view {
    color: #0d6efd; /* bootstrap primary */
    border-color: rgba(13,110,253,0.35);
}

    .icon-action-view:hover {
        background: rgba(13,110,253,0.06);
    }

.icon-action-download {
    color: #198754; /* bootstrap success */
    border-color: rgba(25,135,84,0.35);
}

    .icon-action-download:hover {
        background: rgba(25,135,84,0.06);
    }




/*.input-shadcn {
    text-align: center;
    font-weight: bold;
}

    .input-shadcn.text-start {
        text-align: start;
    }

.container {
    max-width: 600px;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.card-shadcn-light[role="button"]:hover {
    background-color: #fcfcfc;
    cursor: pointer;
}*/