/* ===== BASE STYLES ===== */
#spa-plugin-content .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

#spa-plugin-content .health-score-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 5px;
}

#spa-plugin-content .health-score-fill {
    height: 8px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== BADGES ===== */
#spa-plugin-content .badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

#spa-plugin-content .badge-success { background: #4CAF50; color: white; }
#spa-plugin-content .badge-warning { background: #FF9800; color: white; }
#spa-plugin-content .badge-danger  { background: #F44336; color: white; }

/* ===== BANK OFFER CARDS ===== */
#spa-plugin-content .bank-offer-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

#spa-plugin-content .bank-offer-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#spa-plugin-content .bank-offer-selected {
    border: 2px solid #4CAF50;
    background: #f0fff0;
}

/* ===== FEATURE CARD CATEGORY COLORS ===== */
#spa-plugin-content .feature-card.essential    { border-left: 4px solid #4CAF50; }
#spa-plugin-content .feature-card.core         { border-left: 4px solid #FFC107; }
#spa-plugin-content .feature-card.analysis     { border-left: 4px solid #2196F3; }
#spa-plugin-content .feature-card.financial    { border-left: 4px solid #FF9800; }
#spa-plugin-content .feature-card.verification { border-left: 4px solid #9C27B0; }
#spa-plugin-content .feature-card.tracking     { border-left: 4px solid #607D8B; }

/* ===== STEP BADGES - Use Classes Instead of Attribute Selectors ===== */
/* Add this class to your HTML step badges: class="step-badge" */
#spa-plugin-content .step-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1.5px solid #2e7d32;
    display: inline-block;
}

/* Different border colors based on background (if you add classes) */
#spa-plugin-content .step-badge-green { border-color: #4CAF50; }
#spa-plugin-content .step-badge-blue { border-color: #2196F3; }
#spa-plugin-content .step-badge-orange { border-color: #FF9800; }

/* ===== VAULT CONTENT ===== */
#spa-plugin-content #vault-content {
    transition: all 0.3s ease;
}

#spa-plugin-content #vault-content .vault-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ===== TOOLTIP ===== */
#spa-plugin-content [title] {
    position: relative;
    cursor: help;
}

#spa-plugin-content [title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* ===== TABLES ===== */
#spa-plugin-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12px;
}

#spa-plugin-content th,
#spa-plugin-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

#spa-plugin-content th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#spa-plugin-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

#spa-plugin-content td {
    word-wrap: break-word;
    word-break: break-word;
}

#spa-plugin-content pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

#spa-plugin-content code {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ===== DOCUMENT ANALYSIS ===== */
#spa-plugin-content .doc-analysis .section-header {
    font-size: 15px;
    font-weight: 600;
    color: #3498db;
    margin-top: 15px;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
    padding-left: 12px;
}

#spa-plugin-content .doc-analysis {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

#spa-plugin-content .doc-analysis h3 {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
}

#spa-plugin-content .doc-analysis > div {
    padding: 15px;
    font-size: 11px;
    line-height: 1.1;
}

#spa-plugin-content .doc-analysis p {
    margin: 2px 0;
    line-height: 1.1;
}

#spa-plugin-content .doc-analysis ol,
#spa-plugin-content .doc-analysis ul {
    margin: 2px 0 4px 0;
    padding-left: 20px;
}

#spa-plugin-content .doc-analysis li {
    margin: 1px 0;
    line-height: 1.1;
}

#spa-plugin-content .doc-analysis h4 {
    margin: 10px 0 5px 0;
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
}

#spa-plugin-content .doc-analysis strong {
    display: block;
    margin: 8px 0 2px 0;
    font-size: 12px;
    font-weight: 600;
}

#spa-plugin-content .doc-analysis br {
    display: none;
}

#spa-plugin-content .doc-analysis br + br {
    display: none;
}

/* ===== FEATURE CARDS - COMPACT ===== */
#spa-plugin-content .feature-card {
    padding: 18px;
}

#spa-plugin-content .feature-card h3 {
    font-size: 18px;
    margin: 8px 0;
}

#spa-plugin-content .feature-card .card-icon {
    font-size: 38px;
    margin-bottom: 5px;
}

#spa-plugin-content .feature-card p {
    font-size: 12px;
    margin-bottom: 10px;
}

#spa-plugin-content .feature-card .card-button {
    padding: 6px 20px;
    font-size: 12px;
}

/* ===== COUNT DISPLAYS ===== */
#spa-plugin-content #res-count-display,
#spa-plugin-content #property-count-display {
    font-size: 11px;
    margin-bottom: 8px;
}

/* Restore old button styles */
#spa-plugin-content .feature-card .card-button {
    display: inline-block !important;
    width: auto !important;
    padding: 8px 25px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

#spa-plugin-content .feature-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}