.action-icon {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
}

.action-icon i {
    font-size: 1rem;
}

.action-icon:hover i {
    transform: scale(1.08);
}
/* Aanchal Travels - Modern CSS with Microanimations */

:root {
    --primary-color: #6B46C1;
    --primary-dark: #553C9A;
    --secondary-color: #EC4899;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 14px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    margin-bottom: 1rem;
}

.col {
    flex: 1;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.col-1 { 
    flex: 0 0 8.333333%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-2 { 
    flex: 0 0 16.666667%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-3 { 
    flex: 0 0 25%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-4 { 
    flex: 0 0 33.333333%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-6 { 
    flex: 0 0 50%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-8 { 
    flex: 0 0 66.666667%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-9 { 
    flex: 0 0 75%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.col-12 { 
    flex: 0 0 100%; 
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

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

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

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out;
}

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

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

.card-header {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-width: auto;
}

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

/* Forms */
.form-group {
    margin-bottom: 0;
}

/* Ensure spacing between form fields in rows */
.row .form-group {
    margin-bottom: 0;
}

/* Extra spacing for form fields to ensure visibility */
.form-group + .form-group {
    margin-top: 0;
}

/* Add spacing for form controls within rows */
.row .form-control,
.row .form-select,
.row textarea.form-control {
    margin-bottom: 0;
}

/* Ensure proper spacing for form fields everywhere */
.form-control:not(:last-child),
.form-select:not(:last-child) {
    margin-bottom: 0;
}

/* Add gap between adjacent form groups in same row */
.col .form-group {
    margin-bottom: 0;
}

/* Ensure spacing in Bootstrap-style rows */
.row > [class*="col-"] .form-group {
    margin-bottom: 0;
}

/* Exception: remove bottom margin from last form group in a container */
.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    transform: translateY(-1px);
}

.form-control:invalid {
    border-color: var(--error-color);
}

select.form-select {
    background-image: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--bg-primary);
    padding-right: 2.5rem;
    position: relative;
}

select.form-select::-ms-expand {
    display: none;
}

/* Create custom dropdown arrow */
select.form-select::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Auto-submit on change for select boxes */
select[name="customer_type"] {
    cursor: pointer;
}

/* Tables */
.table-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-draft {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge-sent {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.badge-viewed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-accepted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.badge-expired {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
    animation: slideInLeft 0.6s ease-out;
}

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

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-light) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideInRight 0.5s ease-out;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-left-color: var(--info-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Add horizontal padding to form groups in modal */
.modal .form-group {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-content.modal-compact {
    max-width: 760px;
}

.modal-content.modal-compact .modal-body {
    padding: 0.75rem 1rem;
}

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

.modal-content.modal-compact .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.modal-content.modal-compact .form-group {
    margin-bottom: 0.6rem;
}

.modal .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.modal .form-control,
.modal .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.quotation-form .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.quotation-form .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.quotation-form .form-group {
    margin-bottom: 0;
}

.quotation-form .form-group textarea,
.quotation-form .form-group input,
.quotation-form .form-group select {
    min-height: 44px;
}

.quotation-form .section-title {
    margin-bottom: 0.75rem;
}

.quotation-form .quotation-item {
    margin-bottom: 1rem;
    padding: 1rem;
}

.quotation-form .quotation-summary {
    padding: 1.25rem 1.5rem;
}

.quotation-summary .summary-line span {
    padding-left: 0.75rem;
}

.quotation-summary .summary-line strong {
    padding-left: 0.75rem;
}

.summary-card .summary-line span,
.summary-card .summary-line strong {
    padding-left: 0.5rem;
}

.summary-card .summary-line {
    font-size: 0.92rem;
}

.customer-link {
    color: var(--text-primary);
    text-decoration: none;
}

.customer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.quotation-view-layout {
    align-items: flex-start;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .quotation-view-layout {
        flex-wrap: nowrap;
    }

    .quotation-view-layout .col-8 {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .quotation-view-layout .col-4 {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        width: 100%;
        margin-bottom: 1rem;
        padding:0px 2px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger, .text-error { color: var(--error-color); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Quotation Items - Extra Horizontal Spacing */
.quotation-item .row {
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    margin-bottom: 1rem;
}

.quotation-item .row > [class*="col-"] {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.quotation-item .col-6,
.quotation-item .col-4,
.quotation-item .col-3 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Ensure quotation item form groups have proper spacing */
.quotation-item .form-group {
    margin-bottom: 0;
}

/* Print Styles */
@media print {
    .header,
    .btn,
    .modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    body {
        background: white;
    }
}
