/* Custom Styling for Rent Tax Calculator */

:root {
    --gradient-start: #f8f9fa;
    --gradient-end: #ffffff;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bg-gradient {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
}

.table tfoot td {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: var(--secondary-color);
    border: 1px solid transparent;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-right: 0.25rem;
}

/* MS Office Style Toolbar */
.toolbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.35rem;
}

.btn-toolbar {
    background: transparent;
    border: 1px solid transparent;
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 70px;
    transition: all 0.15s ease;
}

.btn-toolbar:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    transform: none;
    box-shadow: none;
}

.btn-toolbar:active {
    background: #dee2e6;
    border-color: #adb5bd;
}

.btn-toolbar i {
    font-size: 1.25rem;
    margin: 0;
}

.btn-toolbar .btn-label {
    font-size: 0.75rem;
    line-height: 1;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.chart-container-large {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.chart-container-compact {
    position: relative;
    height: 250px;
    margin: 0;
}

/* Year Tab Content */
.year-tab-content {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
}

.year-tab-content .tab-pane {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Highlight editing row */
.editing-highlight {
    background-color: #fff3cd !important;
    transition: background-color 0.3s ease;
}

/* ============================================
   WOW HERO HEADER - Stunning Design
   ============================================ */

.hero-header {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 0 !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 0;
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-highlight {
    background: linear-gradient(to right, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pro Mode Toolbar */
#proModeToolbar .card {
    border: none;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.toolbar-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
}

.toolbar-title i {
    font-size: 1.25rem;
    color: #667eea;
}

.toolbar-actions .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toolbar-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Regime Selector - Mobile Friendly */
.regime-selector .card {
    border: none;
    background: white;
}

.regime-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.regime-label i {
    font-size: 1.25rem;
    color: #667eea;
}

.regime-tabs .nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 85px;
}

.regime-tabs .nav-link:not(.active) {
    color: #6c757d;
    background: transparent;
}

.regime-tabs .nav-link:not(.active):hover {
    background: #f8f9fa;
    color: #495057;
}

.regime-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.regime-tab-year {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.15rem;
}

/* Mobile Optimizations for Hero */
@media (max-width: 768px) {
    .hero-header {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
    
    .regime-tabs .nav-link {
        padding: 0.6rem 1rem;
        min-width: 70px;
        font-size: 0.875rem;
    }
    
    .regime-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero-header {
        padding: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .regime-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
        font-size: 0.8rem;
    }
}

/* ============================================
   MODE SELECTOR - Compact & Sleek (< 70px)
   ============================================ */

.mode-selector-compact {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mode-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mode-toggle-track {
    position: relative;
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 3rem;
    padding: 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mode-toggle-track input {
    display: none;
}

.mode-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    color: #64748b;
    user-select: none;
}

.mode-btn i {
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.mode-btn span {
    transition: all 0.3s ease;
}

/* Slider - The moving background */
.mode-toggle-slider {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    height: calc(100% - 0.7rem);
    width: calc(50% - 0.35rem);
    background: white;
    border-radius: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Basic Mode - Active State */
.mode-toggle-track input:nth-child(1):checked ~ .mode-toggle-slider {
    transform: translateX(0);
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35), 0 2px 8px rgba(2, 132, 199, 0.25);
}

.mode-toggle-track input:nth-child(1):checked + .mode-btn-basic {
    color: white;
    font-weight: 700;
}

.mode-toggle-track input:nth-child(1):checked + .mode-btn-basic i {
    color: white;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.mode-toggle-track input:nth-child(1):checked + .mode-btn-basic span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Pro Mode - Active State with IMPRESSIVE gradient */
.mode-toggle-track input:nth-child(3):checked ~ .mode-toggle-slider {
    transform: translateX(calc(100% + 0.7rem));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(118, 75, 162, 0.3);
}

/* When Pro Mode is active, style the label */
.mode-toggle-track input#modePro:checked ~ .mode-btn-pro {
    color: white;
    font-weight: 700;
}

.mode-toggle-track input#modePro:checked ~ .mode-btn-pro i {
    color: white;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
    animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1.15);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* Pro Mode text with gradient effect */
.mode-toggle-track input#modePro:checked ~ .mode-btn-pro span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Help Text - Subtle and small */
.mode-help-text {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    min-height: 18px;
    transition: all 0.3s ease;
}

.mode-help-basic,
.mode-help-pro {
    display: none;
    transition: opacity 0.3s ease;
}

/* Hover Effects */
.mode-btn:hover {
    color: #475569;
}

.mode-toggle-track input:nth-child(1):checked + .mode-btn-basic:hover {
    color: white;
}

.mode-toggle-track input#modePro:checked ~ .mode-btn-pro:hover {
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mode-btn {
        padding: 0.45rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .mode-btn i {
        font-size: 1rem;
    }
    
    .mode-help-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .mode-toggle-track {
        padding: 0.3rem;
    }
    
    .mode-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .mode-btn i {
        font-size: 0.95rem;
    }
    
    .mode-toggle-slider {
        top: 0.3rem;
        left: 0.3rem;
        height: calc(100% - 0.6rem);
        width: calc(50% - 0.3rem);
    }
    
    .mode-toggle-track input:nth-child(3):checked ~ .mode-toggle-slider {
        transform: translateX(calc(100% + 0.6rem));
    }
    
    .mode-help-text {
        font-size: 0.7rem;
    }
}

/* Toggle Switch for Rent Period (Annual/Monthly) */
.rent-period-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rent-period-toggle {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 0.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rent-period-toggle input {
    display: none;
}

.rent-period-option {
    position: relative;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 1.5rem;
}

.rent-period-option:hover {
    color: rgba(255, 255, 255, 0.9);
}

.rent-period-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    width: calc(50% - 0.25rem);
    background: white;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.rent-period-toggle input:checked + .rent-period-option {
    color: #667eea;
    font-weight: 700;
}

.rent-period-toggle input:nth-child(3):checked ~ .rent-period-slider {
    transform: translateX(100%);
}

/* Animation for input field when switching periods */
.quick-mode-amount {
    transition: all 0.3s ease;
}

.quick-mode-amount.switching {
    transform: scale(1.05);
    background: #f1f5f9 !important;
}

/* Help text animation */
#quickModeHelpText {
    transition: opacity 0.3s ease;
}

#quickModeHelpText.updating {
    opacity: 0.5;
}

/* Quick Mode Styling */
.quick-mode-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none !important;
}

.quick-mode-card .card-body {
    padding: 3rem 1.5rem;
}

.quick-mode-card h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-mode-card .form-label {
    color: white;
    font-weight: 600;
}

.quick-mode-input {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

.quick-mode-input .btn {
    min-width: 80px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.quick-mode-input .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.quick-mode-input .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

.quick-mode-input .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quick-mode-input .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

.quick-mode-amount {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border: none !important;
    background: white !important;
    padding: 1.5rem 1rem !important;
    height: auto !important;
}

.quick-mode-amount:focus {
    box-shadow: none !important;
    background: #f8f9fa !important;
}

/* Mobile Optimizations for Quick Mode */
@media (max-width: 768px) {
    .quick-mode-card .card-body {
        padding: 2rem 1rem;
    }
    
    .quick-mode-amount {
        font-size: 2rem !important;
        padding: 1rem 0.5rem !important;
    }
    
    .quick-mode-input .btn {
        min-width: 60px;
        font-size: 1.25rem;
    }
    
    .rent-period-option {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .rent-period-option {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Simple & Reliable Datepicker Styling */
.input-group .datepicker {
    cursor: pointer;
    background-color: white;
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .datepicker:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-right: 0 !important;
}

.input-group-text {
    cursor: pointer;
    background-color: #f8f9fa;
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    transition: background-color 0.2s ease;
}

.input-group-text:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Pikaday Calendar Styling - Όμορφο & λειτουργικό για mobile & desktop */
.pika-single {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    z-index: 9999 !important;
    background: white !important;
}

/* Header */
.pika-title {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 12px 12px 0 0 !important;
}

.pika-title select {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 0.35rem 0.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.pika-title select:hover {
    background: white !important;
}

/* Labels */
.pika-label {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Navigation buttons */
.pika-prev,
.pika-next {
    background: transparent !important;
    color: white !important;
    opacity: 0.8 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    transition: all 0.2s ease !important;
}

.pika-prev:hover,
.pika-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
}

/* Weekday headers */
.pika-table thead {
    background: #f8f9fa !important;
}

.pika-table th {
    color: #495057 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 0.5rem !important;
}

/* Days */
.pika-button {
    border-radius: 8px !important;
    background: white !important;
    color: #212529 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 32px !important;
}

.pika-button:hover {
    background: #e3f2fd !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.is-selected .pika-button {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

.is-today .pika-button {
    border: 2px solid var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.1) !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

.is-today.is-selected .pika-button {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Disabled days */
.is-disabled .pika-button {
    color: #ccc !important;
    cursor: not-allowed !important;
    background: #f8f9fa !important;
}

.is-disabled .pika-button:hover {
    background: #f8f9fa !important;
    border-color: transparent !important;
    color: #ccc !important;
}

/* Outside days */
.is-outside-current-month .pika-button {
    color: #adb5bd !important;
    opacity: 0.4 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pika-single {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    
    .pika-button {
        width: 40px !important;
        height: 40px !important;
        line-height: 36px !important;
        font-size: 15px !important;
    }
    
    .pika-table th {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.3rem !important;
    }
    
    .pika-title {
        padding: 0.75rem !important;
    }
}

/* Touch-friendly for small mobile screens */
@media (max-width: 480px) {
    .pika-single {
        max-width: 300px !important;
    }
    
    .pika-button {
        width: 38px !important;
        height: 38px !important;
        line-height: 34px !important;
        font-size: 14px !important;
    }
    
    .pika-table th {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   PRO MODE INPUT CARD - Modern & Fast
   ============================================ */

.pro-input-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: white;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pro-input-card:hover {
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15) !important;
}

.pro-input-card:focus-within {
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-2px);
}

.pro-input-card .card-header,
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    padding: 1rem 1.5rem;
}

.pro-input-card .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.pro-input-card .form-label i {
    font-size: 1rem;
}

.pro-input-card .form-control-lg {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.pro-input-card .form-control-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.pro-input-card .form-control-lg:hover {
    border-color: #667eea;
}

/* Date Mask Inputs - Enhanced */
.date-mask {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    transition: all 0.2s ease;
}

.date-mask:focus {
    background: white;
    font-weight: 700;
}

.date-mask::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: normal;
    font-weight: 400;
}

/* Form Switch Enhancement */
.pro-input-card .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.pro-input-card .form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

/* Action Buttons */
.pro-input-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pro-input-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.pro-input-card .btn-primary:active {
    transform: translateY(-1px);
}

.pro-input-card .btn-outline-secondary {
    border: 2px solid #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pro-input-card .btn-outline-secondary:not(.d-none) {
    animation: fadeInButton 0.3s ease-out;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pro-input-card .btn-outline-secondary:hover {
    background: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Keyboard shortcuts hint */
kbd {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    border: 1px solid #adb5bd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
}

/* Tab navigation focus improvements */
.pro-input-card input:focus,
.pro-input-card select:focus,
.pro-input-card textarea:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* Auto-fill styling */
.pro-input-card input:-webkit-autofill,
.pro-input-card input:-webkit-autofill:hover,
.pro-input-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #212529;
    transition: background-color 5000s ease-in-out 0s;
}

/* Modal Lease Form */
.modal-lease-form .modal-header {
    transition: background 0.3s ease;
}

.modal-lease-form.modal-edit-mode .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.modal-lease-form.modal-edit-mode #modalTitle i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-lease-form.modal-edit-mode #btnSaveLease {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
}

.modal-lease-form.modal-edit-mode #btnSaveLease:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Button for Add Lease */
.btn-add-lease {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-add-lease:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Compact Table Styling */
.compact-table {
    font-size: 0.875rem;
}

.compact-table th {
    padding: 0.5rem 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.compact-table td {
    padding: 0.5rem 0.4rem;
}

.compact-table .lease-col {
    min-width: 180px;
    max-width: 220px;
}

.compact-table .month-col {
    min-width: 55px;
    width: 55px;
}

.compact-table .total-col {
    min-width: 75px;
    font-weight: 600;
}

.cell-compact {
    font-size: 0.8rem;
}

/* Lease Name Cell with Action Buttons */
.lease-name-cell {
    position: relative;
    padding-right: 70px !important;
}

.lease-name {
    display: inline-block;
    max-width: calc(100% - 75px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.lease-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: 4px;
}

/* Extra Small Icon Buttons */
.btn-xs {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.25rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 0.75rem;
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* Bootstrap Tooltips - ensure they work */
.tooltip {
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pro-input-card .card-header h5 {
        font-size: 1rem;
    }
    
    .pro-input-card .form-label {
        font-size: 0.8rem;
    }
    
    .pro-input-card .form-control-lg {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .compact-table {
        font-size: 0.75rem;
    }
    
    .compact-table th, .compact-table td {
        padding: 0.35rem 0.25rem;
    }
    
    .cell-compact {
        font-size: 0.7rem;
    }
}

