
/**
 * Almurakib US Stocks Widgets Pro - Styles
 * Version: 2.0.0
 */


:root {
    --alm-primary: #3482ad;
    --alm-primary-light: #4a9bc7;
    --alm-primary-dark: #286d8a;
    --alm-secondary: #1b1b20;
    --alm-secondary-light: #2a2a30;
    --alm-secondary-dark: #0a0a10;
    --alm-success: #10b981;
    --alm-success-light: #34d399;
    --alm-success-dark: #059669;
    --alm-danger: #ef4444;
    --alm-danger-light: #f87171;
    --alm-danger-dark: #dc2626;
    --alm-warning: #f59e0b;
    --alm-warning-light: #fbbf24;
    --alm-info: #3b82f6;
    --alm-info-light: #60a5fa;
    --alm-gray-50: #f8f9fa;
    --alm-gray-100: #e9ecef;
    --alm-gray-200: #dee2e6;
    --alm-gray-300: #ced4da;
    --alm-gray-400: #adb5bd;
    --alm-gray-500: #6c757d;
    --alm-gray-600: #495057;
    --alm-gray-700: #343a40;
    --alm-gray-800: #212529;
    --alm-gray-900: #1b1b20;
    --alm-shadow-sm: 0 1px 2px 0 rgba(27, 27, 32, 0.05);
    --alm-shadow: 0 2px 4px -1px rgba(27, 27, 32, 0.08), 0 1px 2px -1px rgba(27, 27, 32, 0.04);
    --alm-shadow-md: 0 4px 6px -1px rgba(27, 27, 32, 0.08), 0 2px 4px -1px rgba(27, 27, 32, 0.04);
    --alm-shadow-lg: 0 10px 15px -3px rgba(27, 27, 32, 0.08), 0 4px 6px -2px rgba(27, 27, 32, 0.04);
    --alm-shadow-xl: 0 20px 25px -5px rgba(27, 27, 32, 0.15);
    --alm-radius: 5px;
    --alm-radius-sm: 5px;
    --alm-radius-lg: 5px;
    --alm-radius-xl: 5px;
    --alm-gradient-primary: linear-gradient(135deg, #3482ad 0%, #286d8a 100%);
    --alm-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --alm-gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --alm-gradient-bg: linear-gradient(135deg, #3482ad 0%, #1b1b20 100%);
}

/* Widget Container */
.alm-stock-widget {
    font-family:"Tajawal";
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--alm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(27, 27, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(222, 226, 230, 0.4);
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.alm-stock-widget::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--alm-gradient-primary);
    opacity: 0.7;
}

/* Widget Header */
.alm-stock-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.alm-stock-widget-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

.alm-stock-widget-header > div {
    flex: 1;
    min-width: 180px;
}

/* Stock Name & Symbol */
.alm-stock-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alm-gray-900);
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--alm-gray-900) 0%, var(--alm-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-stock-symbol {
    font-size: 0.875rem;
    color: var(--alm-gray-500);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 5px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.alm-stock-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b; /* أزرق غامق ناعم */
    margin: 22px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0; /* خط سفلي ناعم */
}
/* ترتيب المربعات على صف واحد */
.alm-indicators-counts {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.alm-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.alm-performance-card {
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    background: #fff;
}

.alm-performance-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.alm-performance-change {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.alm-performance-details div {
    font-size: 14px;
    margin-bottom: 6px;
}

.alm-performance-no-data {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
}


.alm-performance-summary {
    background:#f9fafb;
    padding:14px 18px;
    border-radius:10px;
    display:flex;
    gap:15px;
    margin-bottom:20px;
    align-items:center;
}

.alm-summary-icon {
    font-size:30px;
}

.alm-summary-title {
    font-size:18px;
    font-weight:bold;
}

.alm-performance-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}

.alm-sparkline {
    display:block;
    width:100% !important;
    height:60px !important; /* الارتفاع الثابت */
    max-height:60px !important;
    min-height:60px !important;
}


@media (min-width:600px) {
    .alm-performance-grid {
        grid-template-columns:1fr 1fr;
    }
}

.alm-performance-card {
    border:1px solid #e5e7eb;
    padding:16px;
    border-radius:10px;
    background:#fff;
}

.alm-performance-header {
    font-size:18px;
    font-weight:600;
    margin-bottom:8px;
}

.alm-performance-change {
    font-size:22px;
    font-weight:bold;
    margin-bottom:10px;
    text-align:center;
}

.alm-sparkline {
    width:100%;
    height:55px;
    margin-bottom:12px;
}

.alm-performance-details div {
    font-size:14px;
    margin-bottom:6px;
}

.alm-performance-no-data {
    text-align:center;
    padding:15px;
    color:#9ca3af;
}


/* مربع الملخص */
.alm-indicator-summary-box {
    background: #2563eb1a; /* أزرق فاتح مميز */
    border: 2px solid #2563eb;
    border-radius: 10px;
    padding: 14px 12px;
    flex: 1; 
    text-align: center;
    color: #1e3a8a;
    font-weight: 700;
    min-width: 120px;
}

.alm-indicator-summary-box .alm-summary-value {
    font-size: 20px;
    margin-bottom: 6px;
}

.alm-indicator-summary-box .alm-summary-label {
    font-size: 14px;
    opacity: 0.8;
}


.alm-stock-title::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #037eaf; /* الأزرق الفاخر */
    border-radius: 3px; /* يعطي نعومة بدلا من مربع صلب */
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.9;
}


/* Stock Price */
.alm-stock-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--alm-gray-900);
    line-height: 1.1;
    margin-bottom: 10px;
    text-align: left;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--alm-gray-900) 0%, var(--alm-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* Stock Change */
.alm-stock-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.alm-stock-change::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: inherit;
    filter: blur(6px);
    opacity: 0.25;
    z-index: -1;
}

.alm-stock-change.up {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.alm-stock-change.down {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.alm-stock-change span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
}

.alm-stock-change span:last-child {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Meta Row */
.alm-stock-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 16px;
    padding: 16px;
    background: linear-gradient(135deg, var(--alm-gray-50) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-radius: var(--alm-radius);
    margin-top: 16px;
    border: 1px solid rgba(229, 231, 235, 0.4);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.alm-stock-meta-item {
    font-size: 0.875rem;
    color: var(--alm-gray-600);
    line-height: 1.6;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--alm-radius);
    border: 1px solid rgba(229, 231, 235, 0.25);
}

.alm-stock-meta-item strong {
    color: var(--alm-primary);
    font-weight: 700;
    display: inline-block;
    margin-left: 4px;
    font-size: 0.875rem;
}

/* Updated Time */
.alm-stock-updated {
    font-size: 0.75rem;
    color: var(--alm-gray-400);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 231, 235, 0.25);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart Wrapper */
.alm-stock-chart-wrapper {
    margin-top: 16px;
    padding: 16px;
    background: var(--alm-gray-50);
    border-radius: var(--alm-radius);
}

.alm-stock-chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 3px;
    background: #ffffff;
    border-radius: var(--alm-radius);
    box-shadow: var(--alm-shadow);
}

.alm-stock-chart-tab {
    flex: 1;
    min-width: 55px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: var(--alm-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--alm-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.alm-stock-chart-tab:hover {
    background: rgba(99, 102, 241, 0.05);
}

.alm-stock-chart-tab.active {
    background: var(--alm-gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    font-weight: 700;
}

.alm-stock-chart-canvas {
    width: 100% !important;
    height: 280px !important;
    background: #ffffff;
    border-radius: var(--alm-radius);
    padding: 8px;
}

/* Indicators Summary */
.alm-indicators-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alm-indicator-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    border: 2px solid rgba(52, 130, 173, 0.25);
    box-shadow: var(--alm-shadow-sm);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.alm-indicator-overall::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    opacity: 0.25;
    z-index: -1;
}

.alm-indicator-overall[data-signal="buy"] {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.alm-indicator-overall[data-signal="sell"] {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.alm-indicator-overall[data-signal="neutral"] {
    border-color: rgba(107, 114, 128, 0.4);
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.alm-indicator-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--alm-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.alm-indicator-value {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--alm-gray-900);
}

/* Indicators Counts */
.alm-indicators-counts {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(52, 130, 173, 0.04) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: var(--alm-radius);
    border: 1px solid rgba(52, 130, 173, 0.15);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.alm-indicator-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    border-radius: var(--alm-radius);
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

.alm-indicator-count::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    opacity: 0.25;
    z-index: -1;
}

.alm-indicator-count.buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.alm-indicator-count.sell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alm-indicator-count.neutral {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.12) 0%, rgba(107, 114, 128, 0.04) 100%);
    border: 2px solid rgba(107, 114, 128, 0.3);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.alm-count-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.alm-count-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--alm-gray-900) 0%, var(--alm-gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-indicator-count.buy .alm-count-number {
    background: linear-gradient(135deg, var(--alm-success-dark) 0%, var(--alm-success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-indicator-count.sell .alm-count-number {
    background: linear-gradient(135deg, var(--alm-danger-dark) 0%, var(--alm-danger) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-indicator-count.neutral .alm-count-number {
    background: linear-gradient(135deg, var(--alm-gray-700) 0%, var(--alm-gray-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-count-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alm-indicator-count.buy .alm-count-label {
    color: var(--alm-success);
}

.alm-indicator-count.sell .alm-count-label {
    color: var(--alm-danger);
}

.alm-indicator-count.neutral .alm-count-label {
    color: var(--alm-gray-600);
}

/* Indicators Grid */
.alm-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.alm-indicator-card {
    padding: 16px;
    border-radius: var(--alm-radius);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--alm-shadow);
}

.alm-indicator-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    border-radius: 0 2px 2px 0;
}

.alm-indicator-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: inherit;
    filter: blur(8px);
    opacity: 0.25;
    z-index: -1;
}

.alm-indicator-card.buy {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.buy::before {
    background: var(--alm-success);
}

.alm-indicator-card.sell {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.sell::before {
    background: var(--alm-danger);
}

.alm-indicator-card.neutral {
    border-color: rgba(107, 114, 128, 0.25);
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.neutral::before {
    background: var(--alm-gray-500);
}

.alm-indicator-card.overbought {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.overbought::before {
    background: var(--alm-warning);
}

.alm-indicator-card.oversold {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.oversold::before {
    background: var(--alm-info);
}

.alm-indicator-card.low {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.alm-indicator-card.low::before {
    background: var(--alm-info);
}

.alm-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alm-indicator-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--alm-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alm-indicator-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.alm-indicator-card .alm-indicator-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--alm-gray-900);
    margin-bottom: 10px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--alm-gray-900) 0%, var(--alm-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alm-indicator-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.alm-signal-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.alm-signal-text {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alm-indicator-card.buy .alm-signal-text {
    color: var(--alm-success);
}

.alm-indicator-card.sell .alm-signal-text {
    color: var(--alm-danger);
}

.alm-indicator-card.neutral .alm-signal-text {
    color: var(--alm-gray-600);
}

.alm-indicator-card.overbought .alm-signal-text {
    color: var(--alm-warning);
}

.alm-indicator-card.oversold .alm-signal-text {
    color: var(--alm-info);
}

.alm-indicator-card.low .alm-signal-text {
    color: var(--alm-info);
}

.alm-indicator-progress {
    height: 4px;
    background: rgba(229, 231, 235, 0.4);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.alm-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 1s ease-out;
    animation: progressFill 1.5s ease-out forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 85%;
    }
}

.alm-indicator-card.buy .alm-progress-bar {
    animation-delay: 0.1s;
}

.alm-indicator-card.sell .alm-progress-bar {
    animation-delay: 0.2s;
}

.alm-indicator-card.neutral .alm-progress-bar {
    animation-delay: 0.3s;
}

/* Disclaimer */
.alm-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--alm-radius);
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: var(--alm-shadow-sm);
}

.alm-disclaimer-icon {
    font-size: 1.25rem;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.alm-disclaimer-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--alm-gray-700);
}

.alm-disclaimer-text strong {
    color: var(--alm-warning);
    font-weight: 800;
    display: block;
    margin-bottom: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alm-stock-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .alm-stock-name {
        font-size: 1.125rem;
    }

    .alm-stock-price {
        font-size: 1.75rem;
    }

    .alm-stock-widget-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .alm-stock-widget-header > div {
        width: 100%;
        min-width: auto;
    }

    .alm-stock-meta-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .alm-indicators-counts {
        gap: 12px;
        padding: 14px;
    }

    .alm-indicator-count {
        min-width: 75px;
        padding: 12px;
    }

    .alm-count-icon {
        font-size: 1.25rem;
    }

    .alm-count-number {
        font-size: 1.75rem;
    }

    .alm-indicators-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .alm-indicator-card {
        padding: 14px;
    }

    .alm-indicator-card .alm-indicator-value {
        font-size: 1.25rem;
    }

    .alm-indicators-summary {
        flex-direction: column;
        gap: 6px;
    }

    .alm-indicator-overall {
        min-width: 90px;
        padding: 10px 16px;
    }

    .alm-stock-chart-canvas {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .alm-stock-widget {
        padding: 16px;
        margin-bottom: 16px;
    }

    .alm-stock-price {
        font-size: 1.5rem;
    }

    .alm-indicators-counts {
        flex-direction: column;
        gap: 10px;
    }

    .alm-indicator-count {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        padding: 12px 16px;
    }

    .alm-count-icon {
        font-size: 1.125rem;
        margin-bottom: 0;
    }

    .alm-count-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .alm-indicators-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .alm-indicator-card {
        padding: 12px;
    }

    .alm-indicator-card .alm-indicator-value {
        font-size: 1.125rem;
    }

    .alm-disclaimer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .alm-disclaimer-icon {
        align-self: center;
        margin-top: 0;
    }

    .alm-disclaimer-text strong {
        display: inline;
        margin-bottom: 0;
        margin-left: 3px;
    }
}

/* Print Styles */
@media print {
    .alm-stock-widget {
        box-shadow: none;
        border: 2px solid var(--alm-gray-300);
        page-break-inside: avoid;
        background: white !important;
    }

    .alm-stock-widget::before {
        background: var(--alm-gray-600) !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alm-stock-widget {
    animation: fadeIn 0.5s ease-out;
}
