/* =============================================
   RubyPlanet CRM - Modern SaaS Styling (High Specificity)
   ============================================= */

.rubyplanet-wrap,
.rubyplanet-frontend-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #2c3e50;
    line-height: 1.6;
}

/* Login Form */
#rubyplanet-login-form {
    max-width: 460px;
    margin: 80px auto;
    padding: 50px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

#rubyplanet-login-form h2 {
    font-size: 1.75em !important;
    text-align: center;
    margin-bottom: 30px;
    color: #1e3a8a;
    font-weight: 600;
}

#rubyplanet-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.05em;
}

#rubyplanet-login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}

#rubyplanet-login-form button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Frontend Dashboard */
.rubyplanet-frontend-dashboard h1 {
    font-size: 2.15em !important;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.rubyplanet-frontend-dashboard h2 {
    font-size: 1.65em !important;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
}

/* Backend Dashboard & Pages */
.rubyplanet-wrap h1 {
    font-size: 2.0em !important;
    font-weight: 600;
    color: #1e2937;
}

.rubyplanet-wrap h2 {
    font-size: 1.55em !important;
    font-weight: 600;
    color: #334155;
}

/* Metric Cards */
.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.metric-card p {
    font-size: 2.4em !important;
    font-weight: 700;
    margin: 10px 0 0;
    color: #1e40af;
}

/* Modals */
#rubyplanet-contact-modal h2,
#rubyplanet-bulk-email-modal h2,
#rubyplanet-template-modal h2 {
    font-size: 1.7em !important;
    color: #1e3a8a;
}

/* Responsive */
@media (max-width: 768px) {
    #rubyplanet-login-form {
        margin: 30px 15px;
        padding: 35px 25px;
    }
    
    .rubyplanet-frontend-dashboard h1 {
        font-size: 1.85em !important;
    }
    
    .rubyplanet-wrap h1 {
        font-size: 1.8em !important;
    }
    
    .metric-card p {
        font-size: 2.1em !important;
    }
}

/* =============================================
   STRONG OVERRIDE RULES - Last in file
   ============================================= */

.rubyplanet-frontend-dashboard h2,
.rubyplanet-wrap h2 {
    font-size: 1.45em !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 18px !important;
}

.rubyplanet-frontend-dashboard h1,
.rubyplanet-wrap h1 {
    font-size: 1.95em !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 30px !important;
}

/* Login Page Title */
#rubyplanet-login-form h2 {
    font-size: 1.65em !important;
    margin-bottom: 25px !important;
    color: #1e3a8a !important;
}

/* Make sure metric cards and modals are not affected */
.metric-card h3 {
    font-size: 1.1em !important;
}

/* Modals */
#rubyplanet-contact-modal h2,
#rubyplanet-bulk-email-modal h2,
#rubyplanet-template-modal h2 {
    font-size: 1.6em !important;
}

/* =============================================
   ULTIMATE OVERRIDE - Beats Theme Variables
   ============================================= */

.rubyplanet-frontend-dashboard h2,
.rubyplanet-wrap h2,
#rubyplanet-login-form h2,
#rubyplanet-contact-modal h2,
#rubyplanet-bulk-email-modal h2,
#rubyplanet-template-modal h2 {
    font-size: 1.45em !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-bottom: 18px !important;
    color: #1e3a8a !important;
}

.rubyplanet-frontend-dashboard h1,
.rubyplanet-wrap h1 {
    font-size: 1.95em !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 30px !important;
}

/* Login Form Title */
#rubyplanet-login-form h2 {
    font-size: 1.65em !important;
}

/* Metric Card Titles */
.metric-card h3 {
    font-size: 1.1em !important;
    font-weight: 500 !important;
}

/* =============================================
   MAXIMUM SPECIFICITY OVERRIDE
   ============================================= */

body .rubyplanet-frontend-dashboard h2,
body .rubyplanet-wrap h2,
body #rubyplanet-login-form h2,
body #rubyplanet-contact-modal h2,
body #rubyplanet-bulk-email-modal h2,
body #rubyplanet-template-modal h2 {
    font-size: 1.45em !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-bottom: 18px !important;
    color: #1e3a8a !important;
}

body .rubyplanet-frontend-dashboard h1,
body .rubyplanet-wrap h1 {
    font-size: 1.95em !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 30px !important;
}

/* Login Title */
body #rubyplanet-login-form h2 {
    font-size: 1.65em !important;
}

/* Make sure metric card titles are not too big */
body .metric-card h3 {
    font-size: 1.1em !important;
}

/* =============================================
   ULTIMATE OVERRIDE - Beats Theme h2/h1 Variables
   ============================================= */

.rubyplanet-frontend-dashboard h2,
.rubyplanet-wrap h2,
#rubyplanet-login-form h2,
#rubyplanet-contact-modal h2,
#rubyplanet-bulk-email-modal h2,
#rubyplanet-template-modal h2 {
    font-size: 1.42em !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-bottom: 16px !important;
    color: #1e3a8a !important;
}

.rubyplanet-frontend-dashboard h1,
.rubyplanet-wrap h1 {
    font-size: 1.95em !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 28px !important;
}

/* Login Title */
#rubyplanet-login-form h2 {
    font-size: 1.65em !important;
}

/* Make sure metric card titles are smaller */
.metric-card h3 {
    font-size: 1.05em !important;
    font-weight: 500 !important;
}

/* =============================================
   ULTIMATE HIGH-SPECIFICITY OVERRIDE
   ============================================= */

.rubyplanet-app h1,
.rubyplanet-app h2 {
    font-size: 1.45em !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-bottom: 18px !important;
    color: #1e3a8a !important;
}

.rubyplanet-app h1 {
    font-size: 1.95em !important;
}

#rubyplanet-login-form h2 {
    font-size: 1.65em !important;
}

/* Login form */
#rubyplanet-login-form {
    max-width: 460px;
    margin: 80px auto;
    padding: 50px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}