/* FB Boost Business - Complete CSS */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    animation: slideUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #fee;
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background-color: #d4edda;
    border-left: 4px solid var(--accent-color);
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid var(--secondary-color);
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-info {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.login-info code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 0.9rem;
}

.login-footer p {
    margin-bottom: 5px;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.sidebar.collapsed .sidebar-logo h2,
.sidebar.collapsed .sidebar-user span,
.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.sidebar-logo h2 {
    font-size: 1.3rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    margin-top: 10px;
}

.sidebar-user i {
    font-size: 1.2rem;
}

.sidebar-user span {
    font-weight: 500;
    flex: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid var(--accent-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item .badge {
    position: absolute;
    right: 20px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
    min-width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background: #f5f7fa;
    transition: var(--transition);
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

/* Header */
.header {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.stat-card.success::before { background: linear-gradient(to bottom, #2ecc71, #27ae60); }
.stat-card.warning::before { background: linear-gradient(to bottom, #f39c12, #e67e22); }
.stat-card.danger::before { background: linear-gradient(to bottom, #e74c3c, #c0392b); }

.stat-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }
.stat-icon.success { background: rgba(46, 204, 113, 0.1); color: var(--accent-color); }
.stat-icon.warning { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.stat-icon.danger { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }

.stat-numbers h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-numbers p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.stat-change.positive { color: var(--accent-color); }
.stat-change.negative { color: var(--danger-color); }

/* Table Styles */
.table-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.table-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.table-responsive {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #4a5568;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr.selected {
    background-color: #e3f2fd;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.btn-danger {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.btn-warning {
    background: linear-gradient(to right, #f39c12, #e67e22);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-control.error {
    border-color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.form-control.success {
    border-color: var(--accent-color);
    background-color: rgba(46, 204, 113, 0.05);
}

.form-text {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px dashed #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.file-preview {
    margin-top: 10px;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 20px;
}

.badge-primary { background: var(--secondary-color); color: white; }
.badge-success { background: var(--accent-color); color: white; }
.badge-warning { background: var(--warning-color); color: white; }
.badge-danger { background: var(--danger-color); color: white; }
.badge-info { background: #3498db; color: white; }

/* Progress Bar */
.progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-bar.primary { background: linear-gradient(to right, #3498db, #2980b9); }
.progress-bar.success { background: linear-gradient(to right, #2ecc71, #27ae60); }
.progress-bar.warning { background: linear-gradient(to right, #f39c12, #e67e22); }
.progress-bar.danger { background: linear-gradient(to right, #e74c3c, #c0392b); }

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: var(--transition);
}

.tab:hover {
    color: var(--secondary-color);
}

.tab.active {
    color: var(--secondary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.alert i {
    font-size: 1.2rem;
}

.alert-dismissible {
    justify-content: space-between;
}

.alert-dismissible .close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.alert-dismissible .close:hover {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state p {
    color: #a0aec0;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading p {
    color: #4a5568;
    font-size: 1rem;
}

/* Client Search Modal */
.client-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: var(--radius);
    margin-top: 10px;
}

.client-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}

.client-item:hover {
    background: #f8f9fa;
}

.client-item:last-child {
    border-bottom: none;
}

.client-item .client-id {
    font-weight: 600;
    color: var(--primary-color);
}

.client-item .client-name {
    color: #666;
    font-size: 0.9rem;
}

/* Currency Display */
.currency {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.currency-bdt::after {
    content: ' BDT';
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .sidebar-logo h2,
    .sidebar-user span,
    .menu-item span {
        display: none;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-filters .search-box,
    .table-filters select {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .stat-card-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .header-actions,
    .btn:not(.print-btn),
    .search-box,
    .table-filters {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .table-container,
    .stat-card,
    .form-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .data-table th {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

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

.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-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

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

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

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

/* Animation Classes */
.fade-in { animation: fadeIn 0.3s ease; }
.slide-in { animation: slideInRight 0.3s ease; }
.scale-in { animation: modalSlide 0.3s ease; }

/* Theme Colors */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--light-color); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: #7f8c8d; }
/* Additional styles for new investment form */

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Client search modal specific styles */
.client-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: var(--radius);
    margin-top: 10px;
}

.client-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.client-item:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.client-item:last-child {
    border-bottom: none;
}

.client-item .client-id {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.client-item .client-name {
    color: #666;
}

/* File upload improvements */
.file-upload {
    position: relative;
    margin-bottom: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: var(--radius);
    background: #f8f9fa;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.file-upload-label i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.file-preview {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: #f8f9fa;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
}

/* Currency helper */
.currency-helper {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Auto-suggestions for search */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-item:hover {
    background: #f8f9fa;
}

/* Readonly input styling */
.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Required field indicator */
label[for]::after {
    content: " *";
    color: var(--danger-color);
}

/* Form validation improvements */
.form-group.error .form-control {
    border-color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group.error label {
    color: var(--danger-color);
}

.field-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group.success .form-control {
    border-color: var(--accent-color);
    background-color: rgba(46, 204, 113, 0.05);
}

/* Responsive improvements for form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: var(--radius);
        margin-bottom: 5px;
    }
    
    .input-group-append .btn {
        border-radius: var(--radius);
        width: 100%;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
    }
}

/* Print styles for form */
@media print {
    .file-upload,
    .input-group-append,
    .btn {
        display: none !important;
    }
    
    .form-control[readonly] {
        border: none !important;
        background: none !important;
    }
}
/* Additional styles for new investment form */
.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Client search modal specific styles */
.client-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 10px;
}

.client-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.client-item:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.client-item:last-child {
    border-bottom: none;
}

/* File upload improvements */
.file-upload {
    position: relative;
    margin-bottom: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.file-upload-label i {
    font-size: 1.2rem;
    color: #3498db;
}

.file-preview {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* Currency helper */
.currency-helper {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Profit difference styles */
.profit-difference {
    margin-top: 10px;
}

.profit-positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #27ae60;
}

.profit-negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #c0392b;
}

.profit-neutral {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #2980b9;
}

/* Readonly input styling */
.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #e74c3c;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .input-group-append .btn {
        border-radius: 8px;
        width: 100%;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
    }
}

/* Print styles for form */
@media print {
    .file-upload,
    .input-group-append,
    .btn {
        display: none !important;
    }
    
    .form-control[readonly] {
        border: none !important;
        background: none !important;
    }
}