/* =================  VARIABLES ================= */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ================= GENERAL STYLING ================= */
body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ================= METRIC CARDS ================= */
.metric-card {
    height: 100%;
    cursor: help;
    position: relative;
}

.metric-card:hover {
    border-left: 4px solid var(--primary-color);
}

.metric-card .tooltip-icon {
    color: var(--info-color);
    cursor: pointer;
    font-size: 0.9rem;
}

.metric-card h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ================= COMPANY INFO ================= */
#company-info h2 {
    color: var(--dark-text);
    font-weight: 600;
}

#company-info .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ================= CHARTS ================= */
canvas {
    max-height: 300px;
}

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--light-bg);
    font-weight: 600;
}

/* ================= DCF SIMULATOR ================= */
.form-range {
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    cursor: pointer;
}

#dcf-results {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dcf-result-card {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.dcf-result-card h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dcf-result-card p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ================= LEARN CARDS ================= */
.learn-card {
    height: 100%;
    border-left: 4px solid var(--warning-color);
}

.learn-card:hover {
    border-left-color: var(--primary-color);
}

.learn-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ================= TOOLTIPS (Tippy.js override) ================= */
.tippy-box[data-theme~='financial'] {
    background-color: #2c3e50;
    color: white;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    padding: 1rem;
    max-width: 350px;
}

.tippy-box[data-theme~='financial'] .tippy-content {
    padding: 0.5rem;
}

.tippy-box[data-theme~='financial'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #2c3e50;
}

/* ================= LOADING STATES ================= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {
    .metric-card h3 {
        font-size: 1.5rem;
    }
    
    .dcf-result-card h2 {
        font-size: 2rem;
    }
    
    #dcf-results {
        min-height: 200px;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes highlight {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
        transform: scale(1.02);
    }
}

.highlight-category {
    animation: highlight 1.5s ease-in-out;
}

/* ================= CATEGORY CARDS ================= */
.category-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-card .card-header {
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-4px);
}

/* ================= METRIC ITEM STYLING ================= */
.metric-item {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.metric-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.metric-item .metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-item .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-top: 0.5rem;
}

/* ================= UTILITY CLASSES ================= */
.text-positive {
    color: var(--success-color);
}

.text-negative {
    color: var(--danger-color);
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.scroll-margin {
    scroll-margin-top: 100px;
} 
 / *   = = = = = = = = = = = = = = = = =   N E W S   W I D G E T   S T Y L E S   = = = = = = = = = = = = = = = = =   * /  
  
 . n e w s - i t e m   {  
         p a d d i n g - l e f t :   1 0 p x ;  
         b o r d e r - l e f t :   3 p x   s o l i d   t r a n s p a r e n t ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
 }  
  
 . n e w s - i t e m : h o v e r   {  
         b o r d e r - l e f t - c o l o r :   v a r ( - - i n f o - c o l o r ) ;  
         b a c k g r o u n d - c o l o r :   r g b a ( 1 3 ,   2 0 2 ,   2 4 0 ,   0 . 0 5 ) ;  
         p a d d i n g - l e f t :   1 5 p x ;  
 }  
  
 . n e w s - i t e m : l a s t - c h i l d   {  
         b o r d e r - b o t t o m :   n o n e   ! i m p o r t a n t ;  
         m a r g i n - b o t t o m :   0   ! i m p o r t a n t ;  
         p a d d i n g - b o t t o m :   0   ! i m p o r t a n t ;  
 }  
  
 . n e w s - i t e m   h 6   a   {  
         l i n e - h e i g h t :   1 . 4 ;  
         f o n t - s i z e :   0 . 9 5 r e m ;  
         t r a n s i t i o n :   c o l o r   0 . 2 s   e a s e ;  
 }  
  
 . n e w s - i t e m   h 6   a : h o v e r   {  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r )   ! i m p o r t a n t ;  
 }  
  
 . n e w s - i t e m   . b a d g e   {  
         f o n t - s i z e :   0 . 7 5 r e m ;  
         f o n t - w e i g h t :   6 0 0 ;  
 }  
  
 # n e w s - w i d g e t : : - w e b k i t - s c r o l l b a r   {  
         w i d t h :   6 p x ;  
 }  
  
 # n e w s - w i d g e t : : - w e b k i t - s c r o l l b a r - t r a c k   {  
         b a c k g r o u n d :   # f 1 f 1 f 1 ;  
         b o r d e r - r a d i u s :   1 0 p x ;  
 }  
  
 # n e w s - w i d g e t : : - w e b k i t - s c r o l l b a r - t h u m b   {  
         b a c k g r o u n d :   # 8 8 8 ;  
         b o r d e r - r a d i u s :   1 0 p x ;  
 }  
  
 # n e w s - w i d g e t : : - w e b k i t - s c r o l l b a r - t h u m b : h o v e r   {  
         b a c k g r o u n d :   # 5 5 5 ;  
 }  
  
 / *   = = = = = = = = = = = = = = = = =   E A R N I N G S   C H A R T   S T Y L E S   = = = = = = = = = = = = = = = = =   * /  
 # e a r n i n g s C h a r t   {  
         m a x - h e i g h t :   4 0 0 p x ;  
 }  
 