/* Travel Expense Tracker Pro - Compact with Full Features */
.travel-expense-tracker-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-sizing: border-box;
}

.tracker-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.tracker-header h1 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 700;
}

.trip-setup {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.trip-input, .budget-input, .currency-select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.trip-input:focus, .budget-input:focus, .currency-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.trip-input {
    flex: 2;
    min-width: 200px;
}

.budget-input {
    flex: 1;
    min-width: 120px;
}

.currency-select {
    flex: 0.8;
    min-width: 100px;
}

/* Main Layout */
.tracker-main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-platforms, .quick-stats, .ai-suggestions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.booking-platforms h3, .quick-stats h3, .ai-suggestions h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

.platform-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.platform-btn.airbnb { border-color: #ff5a5f; color: #ff5a5f; }
.platform-btn.booking { border-color: #003580; color: #003580; }
.platform-btn.skyscanner { border-color: #00a698; color: #00a698; }
.platform-btn.uber { border-color: #000000; color: #000000; }
.platform-btn.tripadvisor { border-color: #00aa6c; color: #00aa6c; }
.platform-btn.rentalcars { border-color: #f15a22; color: #f15a22; }

.platform-btn i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.platform-btn span {
    flex: 1;
    text-align: left;
}

/* Quick Stats */
.quick-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.quick-stats .stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #718096;
    font-size: 12px;
    text-align: left;
}

.stat-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 12px;
    text-align: right;
}

/* AI Suggestions */
.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    color: #f6ad55;
    margin-top: 1px;
    flex-shrink: 0;
    font-size: 12px;
}

.suggestion-item span {
    text-align: left;
    flex: 1;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

.tracker-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 15px;
    min-height: 500px;
}

/* Enhanced Input Panel */
.input-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.input-panel h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    width: 100%;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    text-align: center;
}

.form-group input::placeholder {
    text-align: center;
    color: #a0aec0;
}

.form-group select {
    text-align-last: center;
}

.form-group select option {
    text-align: left;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.ai-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.ai-btn {
    padding: 10px 6px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    justify-content: center;
}

.ai-btn:hover {
    background: #edf2f7;
    border-color: #667eea;
    color: #667eea;
}

.ai-btn i {
    font-size: 12px;
}

.ai-btn span {
    text-align: center;
    line-height: 1.1;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
    min-height: 70px;
    text-align: center;
    box-sizing: border-box;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.budget-card .card-icon { background: #e3f2fd; color: #1976d2; }
.spent-card .card-icon { background: #ffebee; color: #d32f2f; }
.remaining-card .card-icon { background: #e8f5e8; color: #388e3c; }
.daily-card .card-icon { background: #fff3e0; color: #f57c00; }

.card-content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.card-content h4 {
    margin: 0 0 4px 0;
    color: #718096;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.card-content span {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Right Column Styles */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expense-list-section, .analytics-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.expense-list-section h3, .analytics-section h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.export-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.pdf-btn {
    background: #e53e3e;
    color: white;
}

.pdf-btn:hover {
    background: #c53030;
}

.excel-btn {
    background: #217346;
    color: white;
}

.excel-btn:hover {
    background: #1a5f3a;
}

.print-btn {
    background: #2d3748;
    color: white;
}

.print-btn:hover {
    background: #1a202c;
}

.export-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.expense-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 10px;
    margin-bottom: 15px;
}

.expense-filters select, .expense-filters input {
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

.expense-filters select {
    text-align-last: center;
}

.expense-filters input::placeholder {
    text-align: center;
    font-size: 12px;
}

.expense-list {
    max-height: 250px;
    overflow-y: auto;
    min-height: 150px;
    width: 100%;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
    gap: 10px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.expense-item:hover {
    background: #f7fafc;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.expense-category {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.expense-details {
    flex: 1;
    min-width: 0;
}

.expense-details h4 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.expense-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #718096;
    flex-wrap: wrap;
    text-align: left;
}

.expense-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    text-align: left;
}

.expense-amount {
    font-weight: 700;
    font-size: 13px;
    color: #2d3748;
    margin-right: 8px;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.expense-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.delete-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: center;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #feb2b2;
}

/* Charts */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.chart-wrapper {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    height: 180px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    max-width: 90%;
    box-sizing: border-box;
}

.loading-spinner i {
    font-size: 30px;
    color: #667eea;
    margin-bottom: 10px;
}

.loading-spinner p {
    margin: 0;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

/* Category Colors */
.category-accommodation { background: #e3f2fd; color: #1976d2; }
.category-transport { background: #e8f5e8; color: #388e3c; }
.category-meals { background: #fff3e0; color: #f57c00; }
.category-activities { background: #f3e5f5; color: #7b1fa2; }
.category-shopping { background: #e0f2f1; color: #00796b; }
.category-business { background: #fff8e1; color: #ffa000; }
.category-health { background: #ffebee; color: #d32f2f; }
.category-communication { background: #f3e5f5; color: #7b1fa2; }
.category-insurance { background: #e8eaf6; color: #3f51b5; }
.category-other { background: #f5f5f5; color: #616161; }

/* No Expenses State */
.no-expenses {
    text-align: center;
    padding: 40px 15px;
    color: #718096;
    width: 100%;
    box-sizing: border-box;
}

.no-expenses i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #cbd5e0;
}

.no-expenses h4 {
    margin: 0 0 8px 0;
    color: #4a5568;
    text-align: center;
    font-size: 14px;
}

.no-expenses p {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tracker-main-container {
        grid-template-columns: 1fr;
    }
    
    .tracker-container {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .expense-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .travel-expense-tracker-pro {
        padding: 10px;
    }
    
    .tracker-header {
        padding: 15px;
    }
    
    .tracker-header h1 {
        font-size: 1.5em;
    }
    
    .trip-setup {
        flex-direction: column;
        gap: 8px;
    }
    
    .trip-input, .budget-input, .currency-select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .expense-filters {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .expense-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
    
    .expense-info {
        justify-content: space-between;
        text-align: center;
    }
    
    .expense-amount {
        text-align: center;
        width: 100%;
    }
    
    .expense-actions {
        justify-content: center;
        width: 100%;
    }
    
    .ai-features {
        grid-template-columns: 1fr;
    }
    
    .platform-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .left-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .left-sidebar {
        grid-template-columns: 1fr;
    }
    
    .platform-buttons {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .export-btn {
        justify-content: center;
    }
    
    .expense-meta {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .expense-meta span {
        justify-content: center;
        text-align: center;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    z-index: 10000;
    border-left: 4px solid #667eea;
    text-align: left;
    font-size: 13px;
}
.notification-success { border-left-color: #38a169; }
.notification-error { border-left-color: #e53e3e; }
.notification-warning { border-left-color: #dd6b20; }
.notification-info { border-left-color: #3182ce; }
.notification i:first-child {
    font-size: 16px;
}
.notification-success i:first-child { color: #38a169; }
.notification-error i:first-child { color: #e53e3e; }
.notification-warning i:first-child { color: #dd6b20; }
.notification-info i:first-child { color: #3182ce; }
.notification span {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
    text-align: left;
}
.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 12px;
}
.notification-close:hover {
    background: #f7fafc;
    color: #718096;
}