/* =========================
   CAST MEMBERS PORTAL
   BASE STYLES
========================= */

:root {
    --cast-primary: #0b4db8;
    --cast-primary-dark: #073a8c;
    --cast-primary-light: #eef4ff;

    --cast-text: #172033;
    --cast-muted: #6b7280;

    --cast-bg: #f6f8fc;
    --cast-white: #ffffff;

    --cast-border: #dfe5ee;

    --cast-success: #15803d;
    --cast-success-bg: #ecfdf3;

    --cast-warning: #b45309;
    --cast-warning-bg: #fff7ed;

    --cast-danger: #b91c1c;
    --cast-danger-bg: #fef2f2;

    --cast-radius-sm: 8px;
    --cast-radius: 14px;
    --cast-radius-lg: 20px;

    --cast-shadow:
        0 8px 28px rgba(0, 0, 0, 0.06);

    --cast-shadow-hover:
        0 12px 35px rgba(0, 0, 0, 0.10);
}


/* =========================
   GLOBAL WRAPPERS
========================= */

.cast-modern-dashboard,
.cast-profile-modern,
.cast-login-wrapper,
.cast-registration-wrapper,
.cast-elections-wrapper,
.cast-candidate-application,
.cast-voting-wrapper,
.cast-results-wrapper {
    width: 100%;
    max-width: 1150px;
    margin: 30px auto;
    box-sizing: border-box;

    color: var(--cast-text);
    font-family: inherit;
}


/* =========================
   HEADINGS
========================= */

.cast-modern-dashboard h1,
.cast-modern-dashboard h2,
.cast-modern-dashboard h3,
.cast-modern-dashboard h4,
.cast-profile-modern h1,
.cast-profile-modern h2,
.cast-profile-modern h3,
.cast-profile-modern h4,
.cast-login-wrapper h1,
.cast-login-wrapper h2,
.cast-registration-wrapper h1,
.cast-registration-wrapper h2,
.cast-elections-wrapper h1,
.cast-elections-wrapper h2,
.cast-elections-wrapper h3,
.cast-candidate-application h1,
.cast-candidate-application h2,
.cast-candidate-application h3,
.cast-voting-wrapper h1,
.cast-voting-wrapper h2,
.cast-voting-wrapper h3,
.cast-results-wrapper h1,
.cast-results-wrapper h2,
.cast-results-wrapper h3 {
    line-height: 1.25;
}


/* =========================
   LINKS
========================= */

.cast-modern-dashboard a,
.cast-profile-modern a,
.cast-login-wrapper a,
.cast-registration-wrapper a,
.cast-elections-wrapper a,
.cast-candidate-application a,
.cast-voting-wrapper a,
.cast-results-wrapper a {
    transition: 0.2s ease;
}


/* =========================
   STANDARD BUTTONS
========================= */

.cast-button,
.cast-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 18px;

    border: 0;
    border-radius: 10px;

    background: var(--cast-primary);
    color: #fff !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    cursor: pointer;

    transition: 0.2s ease;
}


.cast-button:hover,
.cast-primary-button:hover {
    background: var(--cast-primary-dark);
    color: #fff !important;

    transform: translateY(-1px);
}


.cast-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;
    border: 1px solid var(--cast-border);

    background: #fff;
    color: var(--cast-text) !important;

    font-weight: 700;

    text-decoration: none !important;

    cursor: pointer;
}


.cast-secondary-button:hover {
    border-color: var(--cast-primary);
    color: var(--cast-primary) !important;
}


/* =========================
   PORTAL MESSAGES
========================= */

.cast-portal-message,
.cast-message {
    padding: 14px 16px;
    margin: 15px 0;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 14px;
    line-height: 1.55;
}


.cast-success {
    background: var(--cast-success-bg);
    color: var(--cast-success);
    border-color: #bbf7d0;
}


.cast-warning {
    background: var(--cast-warning-bg);
    color: var(--cast-warning);
    border-color: #fed7aa;
}


.cast-error {
    background: var(--cast-danger-bg);
    color: var(--cast-danger);
    border-color: #fecaca;
}


/* =========================
   FORM BASICS
========================= */

.cast-form-field {
    margin-bottom: 18px;
}


.cast-form-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 700;

    color: var(--cast-text);
}


.cast-form-field input[type="text"],
.cast-form-field input[type="email"],
.cast-form-field input[type="password"],
.cast-form-field input[type="number"],
.cast-form-field input[type="tel"],
.cast-form-field input[type="file"],
.cast-form-field input[type="datetime-local"],
.cast-form-field select,
.cast-form-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    border: 1px solid var(--cast-border);
    border-radius: 10px;

    background: #fff;

    color: var(--cast-text);

    font: inherit;

    transition: 0.2s ease;
}


.cast-form-field textarea {
    min-height: 130px;
    resize: vertical;
}


.cast-form-field input:focus,
.cast-form-field select:focus,
.cast-form-field textarea:focus {
    outline: none;

    border-color: var(--cast-primary);

    box-shadow:
        0 0 0 3px rgba(11, 77, 184, 0.10);
}


.cast-form-field small {
    display: block;

    margin-top: 6px;

    color: var(--cast-muted);

    font-size: 12px;
}


/* =========================
   CARD BASE
========================= */

.cast-card {
    background: var(--cast-white);

    border: 1px solid var(--cast-border);
    border-radius: var(--cast-radius);

    box-shadow: var(--cast-shadow);
}


/* =========================
   SECTION LABEL
========================= */

.cast-section-label {
    display: inline-block;

    margin-bottom: 4px;

    color: var(--cast-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================
   BADGES
========================= */

.cast-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


.cast-badge-primary {
    background: var(--cast-primary-light);
    color: var(--cast-primary);
}


.cast-badge-success {
    background: var(--cast-success-bg);
    color: var(--cast-success);
}


.cast-badge-warning {
    background: var(--cast-warning-bg);
    color: var(--cast-warning);
}


.cast-badge-danger {
    background: var(--cast-danger-bg);
    color: var(--cast-danger);
}


/* =========================
   EMPTY STATE
========================= */

.cast-empty-state {
    padding: 35px;

    text-align: center;

    background: #fff;

    border: 1px dashed var(--cast-border);
    border-radius: var(--cast-radius);

    color: var(--cast-muted);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .cast-modern-dashboard,
    .cast-profile-modern,
    .cast-login-wrapper,
    .cast-registration-wrapper,
    .cast-elections-wrapper,
    .cast-candidate-application,
    .cast-voting-wrapper,
    .cast-results-wrapper {
        margin: 15px auto;
        padding-left: 12px;
        padding-right: 12px;
    }

}