/* css/styles.css - Complete Stylesheet */

/* ============================================= */
/* RESET AND BASE STYLES */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px;
}

/* ============================================= */
/* HEADER STYLES */
/* ============================================= */
.header {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 18px;
}

.header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header p {
    color: #6c757d;
    font-size: 0.9rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-menu span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.role-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.role-user {
    background: #28a745;
    color: white;
}

.role-viewer {
    background: #6c757d;
    color: white;
}

/* ============================================= */
/* BUTTON STYLES */
/* ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: black;
}

.btn-blue {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.btn-ipo {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
}

.btn-purple {
    background: linear-gradient(135deg, #6610f2, #6f42c1);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, #343a40, #495057);
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-3px);
}

/* ============================================= */
/* DASHBOARD LAYOUT - 5 CARDS PER ROW */
/* ============================================= */
.dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* When there are exactly 9 cards, still show 5 & 4 */
.dashboard:has(.card:nth-child(9):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* When there are 10 cards, show 5 & 5 */
.dashboard:has(.card:nth-child(10):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Force empty cells to fill the grid */
.dashboard:has(.card:nth-child(9):last-child)::after {
    content: '';
    grid-column: span 1;
    visibility: hidden;
    height: 0;
}

/* ============================================= */
/* CARD STYLES */
/* ============================================= */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    position: relative;
    min-height: 140px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #667eea;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: inherit;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.2;
    height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Card info icon */
.card-info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    cursor: help;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.card-info-icon:hover {
    opacity: 1;
}

/* Tooltip styling */
.card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    text-align: left;
    line-height: 1.5;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-weight: normal;
}

.card::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.card:hover::after,
.card:hover::before,
.card-info-icon:hover ~ .card::after,
.card-info-icon:hover ~ .card::before {
    opacity: 1;
    visibility: visible;
}

/* Card color variants */
.card-primary { border-left-color: #667eea; }
.card-primary .card-icon { color: #667eea; }

.card-success { border-left-color: #28a745; }
.card-success .card-icon { color: #28a745; }

.card-blue { border-left-color: #17a2b8; }
.card-blue .card-icon { color: #17a2b8; }

.card-warning { border-left-color: #fd7e14; }
.card-warning .card-icon { color: #fd7e14; }

.card-danger { border-left-color: #ff6b6b; }
.card-danger .card-icon { color: #ff6b6b; }

.card-danger-alt { border-left-color: #dc3545; }
.card-danger-alt .card-icon { color: #dc3545; }

.card-teal { border-left-color: #20c997; }
.card-teal .card-icon { color: #20c997; }

.card-purple { border-left-color: #6610f2; }
.card-purple .card-icon { color: #6610f2; }

.card-dark { border-left-color: #343a40; }
.card-dark .card-icon { color: #343a40; }

/* ============================================= */
/* ACCOUNT SELECTION STYLES - SIDE BY SIDE LAYOUT */
/* ============================================= */
.select-controls-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

/* SIDE BY SIDE LAYOUT */
.account-selection-form {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT COLUMN: Account Selection (50% width) */
.account-selection-left {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 42px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* RIGHT COLUMN: Account Statistics (50% width) */
.account-selection-right {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

/* Current Account Info */
.current-account {
    display: none;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    border-right: 4px solid #28a745;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.current-account.active {
    display: block;
}

.account-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.account-info i {
    color: #28a745;
    font-size: 1.2rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* ============================================= */
/* SYSTEM STATS STYLES */
/* ============================================= */
.system-stats {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.system-stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.system-stat-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.system-stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.system-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================= */
/* ACCOUNT BANNER */
/* ============================================= */
.account-banner {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.account-banner div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.account-stats {
    display: flex;
    gap: 20px;
}

.account-stat {
    text-align: center;
}

.account-stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

.account-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ============================================= */
/* FORM STYLES */
/* ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ============================================= */
/* MESSAGE STYLES */
/* ============================================= */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================= */
/* MANAGEMENT SECTIONS */
/* ============================================= */
.management-section {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 22px;
}

/* ============================================= */
/* TABLE STYLES */
/* ============================================= */
.accounts-table {
    width: 100%;
    border-collapse: collapse;
}

.accounts-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.accounts-table td {
    padding: 12px;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

.accounts-table tr:hover {
    background: #f8f9fa;
}

/* Status Styles */
.status-active {
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================= */
/* ACTION BUTTONS */
/* ============================================= */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================= */
/* IPO ALLOCATION SPECIFIC STYLES */
/* ============================================= */
.status-allotted {
    color: #17a2b8;
    font-weight: bold;
}

.status-listed {
    color: #28a745;
    font-weight: bold;
}

.status-sold {
    color: #6c757d;
    font-weight: bold;
}

/* ============================================= */
/* STOCK SPLIT SPECIFIC STYLES */
/* ============================================= */
.split-preview {
    border-left: 4px solid #17a2b8;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.quick-actions {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* ============================================= */
/* MODAL STYLES */
/* ============================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 20px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* ============================================= */
/* TRANSACTION HISTORY SPECIFIC STYLES */
/* ============================================= */
.transaction-container {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.files-panel {
    flex: 0 0 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.transactions-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.file-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item.active {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 0.85rem;
    color: #666;
}

.file-transaction-count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    float: right;
}

.filter-section {
    background: #a5c0da;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.filter-form .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.filter-actions .btn {
    min-width: 120px;
}

.export-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.transaction-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.transaction-table tr:hover {
    background: #f8f9fa;
}

.buy-indicator {
    color: #28a745;
    font-weight: 600;
}

.sell-indicator {
    color: #dc3545;
    font-weight: 600;
}

.no-transactions {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.file-info {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #856404;
}

.warning-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #856404;
}

/* ============================================= */
/* IMPORT DATA SPECIFIC STYLES */
/* ============================================= */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: #555;
}

.recent-uploads {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-uploads h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.recent-file:hover {
    background: #f8f9fa;
}

.file-icon {
    font-size: 1.5rem;
    color: #28a745;
}

.file-details {
    flex: 1;
}

.file-details .file-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.market-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.market-nse {
    background: #28a745;
    color: white;
}

.market-other {
    background: #6c757d;
    color: white;
}

.file-status {
    color: #28a745;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.file-preview {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* ============================================= */
/* LOGIN PAGE SPECIFIC STYLES */
/* ============================================= */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 24px;
    text-align: center;
}

.login-card-header h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-card-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-form-container {
    padding: 24px;
}

.login-form {
    width: 100%;
}

.login-body .form-group {
    margin-bottom: 16px;
}

.login-body .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-body .input-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
}

.login-body .form-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.login-body .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-body .form-input::placeholder {
    color: #6c757d;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #f5c6cb;
}

.login-footer {
    text-align: center;
    padding: 16px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.login-body .input-group.focused .input-icon {
    color: #667eea;
}

.login-body .input-group.focused .form-input {
    border-color: #667eea;
}

/* ============================================= */
/* INTRADAY REPORT SPECIFIC STYLES */
/* ============================================= */

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #28a745;
}

.summary-card.negative {
    border-left-color: #dc3545;
}

.summary-card.neutral {
    border-left-color: #ffc107;
}

.summary-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.summary-value.positive {
    color: #28a745;
}

.summary-value.negative {
    color: #dc3545;
}

.summary-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

/* Profit/Loss Styles */
.profit {
    color: #28a745;
    font-weight: bold;
}

.loss {
    color: #dc3545;
    font-weight: bold;
}

.export-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.charges-breakdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.charges-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.charges-label {
    color: #6c757d;
    font-weight: 500;
}

.charges-value {
    font-weight: 600;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.date-range-info {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

/* Transaction Table Styles */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transaction-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #34495e;
    white-space: nowrap;
}

.transaction-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

/* Symbol column specific */
.transaction-table td.symbol-cell {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-table tr:nth-child(even) {
    background: #f9f9f9;
}

.transaction-table tr:hover {
    background: #f5f5f5;
}

.buy-cell {
    background: #e8f5e8;
}

.sell-cell {
    background: #f8d7da;
}

.charges-cell {
    background: #fff3cd;
}

/* ============================================= */
/* FONTAWESOME FIXES */
/* ============================================= */
.fas, .fa {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.btn i {
    margin-right: 5px;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 1400px) {
    .dashboard {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .container {
        padding: 12px;
    }
}

@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }
    
    .dashboard:has(.card:nth-child(9):last-child)::after {
        content: none;
    }
    
    .account-selection-form {
        flex-direction: column;
        gap: 20px;
    }
    
    .account-selection-left,
    .account-selection-right {
        max-width: 100%;
        min-width: 100%;
    }
    
    .card {
        min-height: 130px;
    }
    
    .card-icon {
        font-size: 1.6rem;
    }
    
    .card h3 {
        font-size: 0.95rem;
    }
    
    .container {
        max-width: 100%;
        padding: 12px;
    }
    
    /* Intraday report responsive */
    .filter-form {
        grid-template-columns: 1fr 1fr auto;
    }
}

@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .account-selection-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card::after {
        width: 240px;
        font-size: 0.85rem;
    }
    
    .transaction-container {
        flex-direction: column;
    }
    
    .files-panel {
        flex: none;
        max-height: 300px;
    }
    
    .user-menu {
        justify-content: center;
        text-align: center;
        margin-top: 15px;
    }
    
    .header > div {
        flex-direction: column;
        gap: 15px;
    }
    
    .account-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .account-stats {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Intraday report responsive */
    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Transaction table responsive */
    .transaction-table {
        font-size: 0.85rem;
    }
    
    .transaction-table th,
    .transaction-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .account-selection-form {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .card {
        min-height: 120px;
        padding: 12px !important;
    }
    
    .card::after,
    .card::before {
        display: none;
    }
    
    .card-info-icon {
        display: none;
    }
    
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 15px;
    }
    
    .management-section {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-form .form-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 16px;
    }
    
    /* Login responsive */
    .login-wrapper {
        max-width: 100%;
        padding: 10px;
    }
    
    .login-card-header {
        padding: 18px;
    }
    
    .login-form-container {
        padding: 18px;
    }
    
    /* Intraday report responsive */
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .export-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-table {
        font-size: 0.75rem;
    }
    
    .transaction-table th,
    .transaction-table td {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .card h3 {
        font-size: 0.9rem;
        height: 2em;
    }
    
    .card .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .card-icon {
        font-size: 1.4rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 7px 12px;
    }
    
    .account-stat-value {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Login mobile */
    .login-card-header h3 {
        font-size: 1.2rem;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    /* Mobile filter adjustments */
    .export-section {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Intraday report mobile */
    .summary-value {
        font-size: 1.5rem;
    }
    
    .transaction-table {
        font-size: 0.65rem;
    }
    
    .transaction-table th,
    .transaction-table td {
        padding: 4px;
    }
}