/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.login-header .logo {
    margin-bottom: 10px;
}

.login-header .logo i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
}

.login-header h1 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: #64748b;
    margin-bottom: 30px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 14px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #9ca3af;
    font-size: 12px;
}

/* Dashboard Styles */
.dashboard-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header .logo span,
.sidebar.collapsed .sidebar-nav li a span,
.sidebar.collapsed .sidebar-footer .user-info span,
.sidebar.collapsed .sidebar-footer .logout-btn span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-header .logo {
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav li a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-nav li a i {
    margin: 0;
}

.sidebar.collapsed .sidebar-footer {
    padding: 20px 10px;
}

.sidebar.collapsed .sidebar-footer .user-info {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.sidebar.collapsed .sidebar-footer .logout-btn {
    justify-content: center;
    padding: 8px;
}

.sidebar.collapsed .sidebar-footer .logout-btn span {
    display: none;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #334155;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-header .logo i {
    font-size: 1.5rem;
    color: #60a5fa;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a span {
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background-color: #334155;
    color: white;
    border-left-color: #60a5fa;
}

.sidebar-nav li.active a {
    background-color: #1d4ed8;
    color: white;
    border-left-color: #60a5fa;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #334155;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #dc2626;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #b91c1c;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Content when sidebar is collapsed */
.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

/* Top Header */
.top-header {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.sidebar-toggle:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.header-left h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header-notifications:hover {
    background-color: #f1f5f9;
}

.header-notifications i {
    font-size: 1.2rem;
    color: #64748b;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #dc2626;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #60a5fa;
}

.stat-card h4 {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .value {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card .change {
    font-size: 12px;
    color: #059669;
}

/* Order Form Styles */
.order-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.order-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:hover {
    border-color: #bdc3c7;
}

/* Symbol Autocomplete */
.symbol-container {
    position: relative;
}

.symbol-input {
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

/* Button Group for Buy/Sell */
.button-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e1e8ed;
    height: 48px;
}

.button-group input[type="radio"] {
    display: none;
}

.btn-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-radio.buy {
    background: #ecf0f1;
    color: #27ae60;
}

.btn-radio.sell {
    background: #ecf0f1;
    color: #e74c3c;
}

.button-group input[type="radio"]:checked + .btn-radio.buy {
    background: #27ae60;
    color: white;
}

.button-group input[type="radio"]:checked + .btn-radio.sell {
    background: #e74c3c;
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .header-user span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-form-container {
        padding: 1rem;
    }
}

/* ========================================
   PROFESSIONAL ORDER EXECUTION STYLES
   ======================================== */

/* Panel Header Professional */
.panel-header-pro {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 24px 28px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.header-icon i {
    font-size: 24px;
    color: #ffffff;
}

.header-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.execution-status-pro {
    display: flex;
    align-items: center;
}

.status-indicator-pro {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Order Form Container Professional */
.order-form-container-pro {
    background: #ffffff;
    padding: 32px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.order-form-pro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Section Cards */
.form-section-card {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.form-section-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.section-header span {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Grid Professional */
.form-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Form Group Professional */
.form-group-pro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.label-text {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.label-required {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
}

.label-optional {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: italic;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.form-control-pro {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control-pro:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.form-control-pro:hover:not(:focus) {
    border-color: #cbd5e1;
}

.form-control-pro::placeholder {
    color: #94a3b8;
}

/* Symbol Autocomplete Professional */
.symbol-container {
    position: relative;
    width: 100%;
}

.symbol-input {
    width: 100%;
}

.autocomplete-dropdown-pro {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.autocomplete-dropdown-pro.show {
    display: block;
}

.autocomplete-item-pro {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #334155;
}

.autocomplete-item-pro:last-child {
    border-bottom: none;
}

.autocomplete-item-pro:hover,
.autocomplete-item-pro.selected {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    color: #1e40af;
    font-weight: 600;
}

/* Button Group Professional */
.button-group-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
}

.button-group-pro input[type="radio"] {
    display: none;
}

.btn-radio-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff;
}

.btn-radio-pro i {
    font-size: 1.1rem;
}

.btn-radio-pro.buy {
    color: #059669;
}

.btn-radio-pro.sell {
    color: #dc2626;
}

.btn-radio-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button-group-pro input[type="radio"]:checked + .btn-radio-pro.buy {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.button-group-pro input[type="radio"]:checked + .btn-radio-pro.sell {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* Form Actions Professional */
.form-actions-pro {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    padding-top: 28px;
    border-top: 2px solid #e2e8f0;
}

.btn-execute {
    flex: 1;
    max-width: 400px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-execute::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-execute:hover::before {
    left: 100%;
}

.btn-execute:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.4);
}

.btn-execute:active {
    transform: translateY(-1px);
}

.btn-icon {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-text strong {
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.btn-text small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn-reset {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Quick Actions Professional */
.quick-actions-pro {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quick-action-btn i {
    font-size: 1.1rem;
}

.quick-action-btn.warning {
    color: #dc2626;
}

.quick-action-btn.warning:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.quick-action-btn.info {
    color: #3b82f6;
}

.quick-action-btn.info:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Professional Forms */
@media (max-width: 992px) {
    .form-grid-pro {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .panel-header-pro {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .execution-status-pro {
        width: 100%;
        justify-content: center;
    }
    
    .order-form-container-pro {
        padding: 20px;
    }
    
    .form-section-card {
        padding: 18px;
    }
    
    .form-grid-pro {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions-pro {
        flex-direction: column;
    }
    
    .btn-execute {
        max-width: 100%;
    }
    
    .quick-actions-pro {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-text h3 {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .button-group-pro {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Instrument Exchange Cards */
.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.instrument-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.instrument-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header-instrument {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exchange-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exchange-info i {
    font-size: 1.2rem;
}

.exchange-name {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.update-needed {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.status-badge.up-to-date {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-updated {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive adjustments for instrument cards */
@media (max-width: 768px) {
    .instruments-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-header-instrument {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .status-badge {
        align-self: flex-end;
    }
}

/* ========================================
   MODAL STYLES
   ======================================== */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

/* Order Results Modal */
.order-results-modal,
.login-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Summary Stats in Modal */
.summary-stats-modal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.stat-box {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.stat-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
}

.stat-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.stat-box .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-box.success .stat-value {
    color: #065f46;
}

.stat-box.error .stat-value {
    color: #991b1b;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Results List */
.order-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-result-item {
    display: grid;
    grid-template-columns: 2fr 3fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.3s ease;
}

.order-result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-result-item.success {
    border-color: #6ee7b7;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.order-result-item.error {
    border-color: #fca5a5;
    background: linear-gradient(to right, #ffffff 0%, #fef2f2 100%);
}

.result-client {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-id {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.order-no {
    font-size: 0.75rem;
    color: #059669;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

.result-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.error-text {
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 600;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.result-icon i {
    font-size: 1.5rem;
}

.order-result-item.success .result-icon i {
    color: #059669;
}

.order-result-item.error .result-icon i {
    color: #dc2626;
}

/* Login Results List */
.login-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-result-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.2s ease;
}

.login-result-item:hover {
    background: #f8fafc;
}

.login-result-item.success {
    border-color: #6ee7b7;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.login-result-item.error {
    border-color: #fca5a5;
    background: linear-gradient(to right, #ffffff 0%, #fef2f2 100%);
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.login-result-item.success .status-icon i {
    color: #059669;
}

.login-result-item.error .status-icon i {
    color: #dc2626;
}

.status-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Progress Container */
.progress-container {
    text-align: center;
    padding: 20px 0;
}

.progress-spinner {
    margin-bottom: 12px;
}

.progress-spinner i {
    font-size: 3rem;
    color: #3b82f6;
}

.progress-text {
    font-size: 1rem;
    color: #475569;
    font-weight: 600;
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10001;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: #059669;
}

.notification-error {
    border-left-color: #dc2626;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-content {
    flex: 1;
    padding: 16px 20px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-header i {
    font-size: 1.25rem;
}

.notification-success .notification-header i {
    color: #059669;
}

.notification-error .notification-header i {
    color: #dc2626;
}

.notification-warning .notification-header i {
    color: #f59e0b;
}

.notification-info .notification-header i {
    color: #3b82f6;
}

.notification-header strong {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.notification-message {
    font-size: 0.875rem;
    color: #64748b;
    margin-left: 35px;
    line-height: 1.4;
}

.notification-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 16px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: #475569;
    background: #f8fafc;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .summary-stats-modal {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .order-result-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .result-icon {
        justify-self: flex-end;
    }
    
    .notification {
        min-width: 280px;
        max-width: calc(100% - 40px);
        right: 20px;
    }
}

@media (max-width: 480px) {
    .summary-stats-modal {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

/* ========================================
   REJECTED ORDERS SECTION
   ======================================== */

/* Modal Large for rejected orders */
.modal-large {
    max-width: 700px;
}

/* Successful Orders Section */
.successful-orders-section {
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    margin-bottom: 12px;
}

.section-title i {
    color: #059669;
    font-size: 1.2rem;
}

.section-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
}

/* Rejected Orders Section */
.rejected-orders-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 3px solid #e5e7eb;
}

.rejected-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rejected-header i {
    color: #dc2626;
    font-size: 1.3rem;
    animation: pulse-warning 2s infinite;
}

.rejected-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #991b1b;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Rejected Orders List */
.rejected-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rejected-order-item {
    background: linear-gradient(to right, #ffffff 0%, #fef2f2 100%);
    border: 2px solid #fca5a5;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.rejected-order-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    background: #fef2f2;
}

.rejected-client {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rejected-client i {
    color: #dc2626;
    font-size: 1.1rem;
}

.rejected-client .client-id {
    font-size: 0.95rem;
    font-weight: 700;
    color: #991b1b;
}

.rejection-reason {
    padding-left: 28px;
}

.rejection-reason .error-text {
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 600;
    line-height: 1.4;
}

/* No Orders Message */
.no-orders-msg {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive for Rejected Orders */
@media (max-width: 768px) {
    .modal-large {
        max-width: 100%;
    }
    
    .section-title,
    .rejected-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rejected-client {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .rejection-reason {
        padding-left: 0;
    }
}