/* YTrading Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.ytrading-add-to-quote {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    display: inline-block !important;
}

.ytrading-add-to-quote:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ytrading-proceed-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.ytrading-proceed-btn:hover {
    background: #059669 !important;
    transform: translateX(5px);
}

.ytrading-main-qty:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quote List & Dashboard Glassmorphism */
.ytrading-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.ytrading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.ytrading-table {
    width: 100%;
    border-collapse: collapse;
}

.ytrading-table th, .ytrading-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ytrading-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.ytrading-button {
    background: #1a1a1a;
    color: white !important;
    border: none !important;
    padding: 0 20px !important; /* Zero vertical padding, let height control it */
    border-radius: 10px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    height: 42px !important; /* Force exact height */
    box-sizing: border-box !important; /* Critical for consistency */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.ytrading-button i {
    font-size: 1.2em;
}

/* Obsidian Theme Palette */
.ytrading-send-pdf { background-color: #1a1a1a !important; }
.ytrading-btn-download { background-color: #333333 !important; }
.ytrading-btn-whatsapp { background-color: #075e54 !important; } /* Dark WhatsApp Green */
.ytrading-btn-complete { background-color: #0d4a3e !important; } /* Dark Emerald */
.ytrading-btn-cancel { background-color: #4a0d0d !important; } /* Dark Maroon */
.ytrading-btn-restore { background-color: #4b5563 !important; } /* Dark Slate */

.ytrading-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    opacity: 0.9;
}

.ytrading-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

.ytrading-form-group {
    margin-bottom: 1.5rem;
}

.ytrading-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ytrading-form-group input, .ytrading-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

/* Toast Notification */
#ytrading-toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ytrading-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Tabs Styling */
.ytrading-tab-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.ytrading-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ytrading-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

.ytrading-admin-row {
    transition: all 0.3s ease;
}

/* Floating Mini Cart */
.ytrading-mini-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

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

.ytrading-mini-cart-info {
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ytrading-cart-count {
    background: #fff;
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.ytrading-mini-cart-btn {
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ytrading-mini-cart-btn:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.ytrading-mini-cart-info i {
    font-size: 1.2em;
}
