/* =============================================
   eVolonter Plugin — Frontend Styles
   Dark-theme compatible (works with еВолонтер theme)
   ============================================= */

/* ─── Wrap ─────────────────────────────────── */
.ev-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ─── Buttons ──────────────────────────────── */
.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    line-height: 1.5;
    font-family: inherit;
}
.ev-btn--primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.ev-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99,102,241,.35);
}
.ev-btn--secondary {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.08);
    color: #94a3b8;
}
.ev-btn--secondary:hover {
    background: #263347;
    color: #f1f5f9;
}
.ev-btn--success {
    background: linear-gradient(135deg, #06d6a0, #05b788);
    color: #fff;
    box-shadow: 0 2px 12px rgba(6,214,160,.3);
}
.ev-btn--sm { padding: 6px 16px; font-size: 0.875rem; }
.ev-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Forms ────────────────────────────────── */
.ev-form {
    max-width: 600px;
    margin: 0 auto;
}
.ev-form__group { margin-bottom: 20px; }
.ev-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: .92rem;
}
.ev-form__label--required::after {
    content: ' *';
    color: #f43f5e;
}
.ev-form__input,
.ev-form__textarea,
.ev-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .25s;
    box-sizing: border-box;
    background: #111827;
    color: #f1f5f9;
}
.ev-form__input:focus,
.ev-form__textarea:focus,
.ev-form__select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.35);
}
.ev-form__input::placeholder { color: #64748b; }
.ev-form__textarea {
    min-height: 120px;
    resize: vertical;
}
.ev-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.ev-form__select option {
    background: #111827;
    color: #f1f5f9;
}
.ev-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .ev-form__row { grid-template-columns: 1fr; }
}
.ev-form__help {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}
.ev-form__error {
    font-size: 0.85rem;
    color: #f43f5e;
    margin-top: 4px;
    display: none;
}

/* ─── Notices ──────────────────────────────── */
.ev-notice {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}
.ev-notice--success {
    background: rgba(6,214,160,.15);
    color: #06d6a0;
    border: 1px solid rgba(6,214,160,.3);
}
.ev-notice--error {
    background: rgba(244,63,94,.15);
    color: #f43f5e;
    border: 1px solid rgba(244,63,94,.3);
}
.ev-notice--info {
    background: rgba(99,102,241,.15);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,.3);
}

/* ─── Action cards (plugin shortcode) ─────── */
.ev-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.ev-action-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.ev-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 40px rgba(99,102,241,.15);
}
.ev-action-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.ev-action-card__body { padding: 20px 24px; }
.ev-action-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.ev-action-card__title a { color: #f1f5f9; text-decoration: none; }
.ev-action-card__title a:hover { color: #818cf8; }
.ev-action-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}
.ev-action-card__excerpt {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.5;
}
.ev-action-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ev-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #818cf8;
    white-space: nowrap;
    line-height: 1.4;
}

/* ─── Filters bar ──────────────────────────── */
.ev-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #111827;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
.ev-filters .ev-form__input,
.ev-filters .ev-form__select {
    width: auto;
    min-width: 180px;
}

/* ─── Calendar grid ────────────────────────── */
.ev-calendar { margin: 24px 0; }
.ev-calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ev-calendar__header h3 { margin: 0; color: #f1f5f9; font-size: 1.15rem; }
.ev-calendar__header button {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.08);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all .2s;
}
.ev-calendar__header button:hover {
    background: #263347;
    color: #f1f5f9;
}
.ev-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
}
.ev-calendar__day-header {
    background: #4f46e5;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}
.ev-calendar__cell {
    background: #111827;
    min-height: 80px;
    padding: 8px;
    position: relative;
}
.ev-calendar__cell--today {
    background: rgba(99,102,241,.1);
}
.ev-calendar__cell--inactive {
    background: #0d1117;
    color: #334155;
}
.ev-calendar__date {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #cbd5e1;
}
.ev-calendar__event {
    display: block;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-bottom: 2px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .ev-calendar__grid { font-size: 0.75rem; }
    .ev-calendar__cell { min-height: 50px; padding: 4px; }
    .ev-calendar__event { font-size: 0.65rem; }
}

/* ─── Profile ──────────────────────────────── */
.ev-profile {
    max-width: 800px;
    margin: 0 auto;
}
.ev-profile__header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}
.ev-profile__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.08);
}
.ev-profile__info h2 { margin: 0 0 4px; color: #f1f5f9; }
.ev-profile__role {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.ev-profile__role--volonter {
    background: rgba(99,102,241,.15);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,.2);
}
.ev-profile__role--partner {
    background: rgba(6,214,160,.15);
    color: #06d6a0;
    border: 1px solid rgba(6,214,160,.2);
}
.ev-profile__section { margin-bottom: 28px; }
.ev-profile__section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f1f5f9;
}
.ev-profile__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ev-profile__grid dt { font-weight: 600; color: #64748b; }
.ev-profile__grid dd { margin: 0; color: #cbd5e1; }

.ev-profile__view { position: relative; }
.ev-profile__edit-btn { margin-left: auto; }
.ev-profile__edit-form { display: none; max-width: 720px; }
.ev-profile__edit-form.is-active { display: block; }
.ev-profile__cancel-btn { margin-left: 8px; }

/* ─── Registration Form ───────────────────── */
.ev-register-form { max-width: 640px; }

@media (max-width: 600px) {
    .ev-profile__header { flex-direction: column; text-align: center; }
    .ev-profile__grid { grid-template-columns: 1fr; }
}

/* ─── Pagination ───────────────────────────── */
.ev-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
}
.ev-pagination a, .ev-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    background: #111827;
    transition: all .25s;
}
.ev-pagination a:hover {
    border-color: #818cf8;
    color: #818cf8;
    box-shadow: 0 0 8px rgba(99,102,241,.35);
}
.ev-pagination .current {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* ─── Loading spinner ──────────────────────── */
.ev-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.08);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: ev-spin 0.7s linear infinite;
}
@keyframes ev-spin { to { transform: rotate(360deg); } }
.ev-loading { text-align: center; padding: 48px 0; }

/* ─── Tables (applications, profile) ───────── */
.ev-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.ev-table th, .ev-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .92rem;
}
.ev-table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .78rem;
}
.ev-table td { color: #cbd5e1; }
.ev-table tr:hover td { background: rgba(99, 102, 241, .04); }


/* ─── Profile action cards (partner dashboard) ─ */
.ev-action-mgmt-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color .25s;
}
.ev-action-mgmt-card:hover {
    border-color: rgba(99,102,241,.25);
}
.ev-action-mgmt-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.ev-action-mgmt-card__header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #f1f5f9;
}
.ev-action-mgmt-card__header h4 a {
    color: #f1f5f9;
    text-decoration: none;
}
.ev-action-mgmt-card__header h4 a:hover { color: #818cf8; }

.ev-action-mgmt-card__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

/* ─── Expandable applicants (details/summary) ── */
.ev-action-mgmt-card details {
    margin-top: 8px;
}
.ev-action-mgmt-card details summary {
    cursor: pointer;
    font-weight: 600;
    color: #818cf8;
    font-size: 0.92rem;
    padding: 6px 0;
    user-select: none;
}
.ev-action-mgmt-card details summary:hover {
    color: #a5b4fc;
}
.ev-action-mgmt-card details[open] summary {
    margin-bottom: 8px;
}

/* ─── Empty state / CTA ───────────────────────── */
.ev-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    font-size: 0.95rem;
}
.ev-empty-state a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}
.ev-empty-state a:hover { text-decoration: underline; }

/* ─── Proposal sender notice ───────────────── */
.ev-sender-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.ev-sender-notice--logged {
    background: rgba(6,214,160,.1);
    border: 1px solid rgba(6,214,160,.2);
    color: #06d6a0;
}
.ev-sender-notice--anon {
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.2);
    color: #fbbf24;
}
.ev-sender-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ─── Admin Panel ──────────────────────────── */
#ev-admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter','Noto Sans','Segoe UI',system-ui,-apple-system,sans-serif;
    color: #f1f5f9;
}

/* Tabs */
.ev-admin__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255,255,255,.08);
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ev-admin__tabs::-webkit-scrollbar { display: none; }
.ev-admin__tab {
    padding: 14px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    font-family: inherit;
    margin-bottom: -2px;
    letter-spacing: .01em;
}
.ev-admin__tab:hover {
    color: #a5b4fc;
    background: rgba(99,102,241,.04);
}
.ev-admin__tab.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
    background: rgba(99,102,241,.06);
}

/* Panels */
.ev-admin__panel { display: none; }
.ev-admin__panel.active { display: block; animation: evFadeIn .25s ease; }
@keyframes evFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* Stats grid */
.ev-admin__stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.ev-stat-card {
    background: linear-gradient(145deg, #111827, #0f172a);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    transition: border-color .25s, box-shadow .25s;
}
.ev-stat-card:hover {
    border-color: rgba(99,102,241,.25);
    box-shadow: 0 4px 20px rgba(99,102,241,.08);
}
.ev-stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: #818cf8;
    line-height: 1.1;
}
.ev-stat-card__label {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
}

/* Admin toolbar (filters + search) */
.ev-admin__toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(17,24,39,.6);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
}
.ev-admin__toolbar select,
.ev-admin__toolbar input[type="text"] {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    min-width: 160px;
    transition: border-color .2s, box-shadow .2s;
}
.ev-admin__toolbar select:focus,
.ev-admin__toolbar input[type="text"]:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.ev-admin__toolbar select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.ev-admin__toolbar select option {
    background: #111827;
    color: #f1f5f9;
}

/* Admin action/suggestion cards */
.ev-admin-card {
    background: linear-gradient(145deg, #111827, #0f172a);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 14px;
    transition: border-color .25s, box-shadow .25s;
}
.ev-admin-card:hover {
    border-color: rgba(99,102,241,.2);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.ev-admin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.ev-admin-card__header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}
.ev-admin-card__header h4 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.ev-admin-card__header h4 a:hover { color: #818cf8; }
.ev-admin-card__header p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Admin table (applicants, users) */
#ev-admin-panel .ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    margin-top: 8px;
}
#ev-admin-panel .ev-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid rgba(255,255,255,.08);
    white-space: nowrap;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(15,23,42,.5);
}
#ev-admin-panel .ev-table th:first-child { border-radius: 8px 0 0 0; }
#ev-admin-panel .ev-table th:last-child  { border-radius: 0 8px 0 0; }
#ev-admin-panel .ev-table td {
    padding: 10px 12px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}
#ev-admin-panel .ev-table tr:hover td {
    background: rgba(99,102,241,.04);
}
#ev-admin-panel .ev-table a { color: #818cf8; text-decoration: none; }
#ev-admin-panel .ev-table a:hover { text-decoration: underline; }
#ev-admin-panel .ev-table img {
    display: inline-block;
    vertical-align: middle;
}

/* Tags/badges — status & role variants */
.ev-tag--pending {
    background: rgba(251,191,36,.12);
    border-color: rgba(251,191,36,.25);
    color: #fbbf24;
}
.ev-tag--accepted,
.ev-tag--approved {
    background: rgba(6,214,160,.12);
    border-color: rgba(6,214,160,.25);
    color: #06d6a0;
}
.ev-tag--converted {
    background: rgba(34,211,238,.12);
    border-color: rgba(34,211,238,.25);
    color: #22d3ee;
}
.ev-tag--rejected {
    background: rgba(244,63,94,.12);
    border-color: rgba(244,63,94,.25);
    color: #f43f5e;
}
.ev-tag--cancelled,
.ev-tag--archived {
    background: rgba(100,116,139,.12);
    border-color: rgba(100,116,139,.25);
    color: #64748b;
}

/* Role tags */
.ev-tag--volonter {
    background: rgba(6,214,160,.12);
    border-color: rgba(6,214,160,.25);
    color: #06d6a0;
}
.ev-tag--partner {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.25);
    color: #818cf8;
}
.ev-tag--urednik_sadrzaja,
.ev-tag--administrator {
    background: rgba(251,191,36,.12);
    border-color: rgba(251,191,36,.25);
    color: #fbbf24;
}

/* Buttons inside admin panel */
#ev-admin-panel .ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    line-height: 1.4;
    font-family: inherit;
    white-space: nowrap;
}
#ev-admin-panel .ev-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
#ev-admin-panel .ev-btn:active { transform: translateY(0); }
#ev-admin-panel .ev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
#ev-admin-panel .ev-btn--sm {
    padding: 5px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
}
#ev-admin-panel .ev-btn--secondary {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
}
#ev-admin-panel .ev-btn--secondary:hover {
    background: #263347;
    color: #f1f5f9;
    border-color: rgba(255,255,255,.15);
}

/* Details/summary (expandable applicants) */
#ev-admin-panel details { margin-top: 10px; }
#ev-admin-panel details summary {
    cursor: pointer;
    font-weight: 600;
    color: #818cf8;
    font-size: 0.9rem;
    padding: 8px 0;
    user-select: none;
    transition: color .2s;
    list-style: none;          /* Chrome */
}
#ev-admin-panel details summary::-webkit-details-marker { display: none; }
#ev-admin-panel details summary::before {
    content: '▸ ';
    transition: transform .2s;
    display: inline-block;
}
#ev-admin-panel details[open] summary::before {
    transform: rotate(90deg);
}
#ev-admin-panel details summary:hover { color: #a5b4fc; }
#ev-admin-panel details[open] summary { margin-bottom: 4px; }

/* Loading state */
#ev-admin-panel .ev-loading {
    text-align: center;
    padding: 48px 0;
}

/* Notices inside admin */
#ev-admin-panel .ev-notice {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Admin panel responsive */
@media (max-width: 768px) {
    #ev-admin-panel { padding: 0 4px; }
    .ev-admin__tabs { gap: 0; }
    .ev-admin__tab { padding: 10px 14px; font-size: 0.82rem; }
    .ev-admin__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ev-stat-card { padding: 16px 12px; }
    .ev-stat-card__value { font-size: 1.5rem; }
    .ev-admin-card { padding: 16px; }
    .ev-admin-card__header { flex-direction: column; gap: 10px; }
    #ev-admin-panel .ev-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ev-admin__toolbar { padding: 10px 12px; gap: 8px; }
    .ev-admin__toolbar select,
    .ev-admin__toolbar input[type="text"] { min-width: 120px; font-size: 0.84rem; }
}
@media (max-width: 480px) {
    .ev-admin__stats { grid-template-columns: 1fr 1fr; }
    .ev-admin__tab { padding: 8px 10px; font-size: 0.78rem; }
}

/* ─── Forgot password toggle ───────────────── */
.ev-forgot-link {
    color: #818cf8;
    cursor: pointer;
    font-size: 0.88rem;
    text-decoration: none;
}
.ev-forgot-link:hover { text-decoration: underline; }

/* ─── Blog card (front page section) ───────── */
.evt-blog-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.evt-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 40px rgba(99,102,241,.15);
}

/* ─── Edit Action Modal ────────────────────── */
.ev-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.ev-modal-overlay--open {
    display: flex;
}
.ev-modal {
    background: #111827;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    animation: evModalIn .25s ease;
}
@keyframes evModalIn {
    from { opacity:0; transform:translateY(20px) scale(.98); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.ev-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ev-modal__header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}
.ev-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all .2s;
    line-height: 1;
}
.ev-modal__close:hover {
    color: #f43f5e;
    background: rgba(244,63,94,.1);
}
.ev-modal__body {
    padding: 20px 24px 24px;
}
.ev-modal__body .ev-form__group {
    margin-bottom: 16px;
}
.ev-modal__body .ev-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: .88rem;
}
.ev-modal__body .ev-form__input,
.ev-modal__body .ev-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    background: #0f172a;
    color: #f1f5f9;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.ev-modal__body .ev-form__input:focus,
.ev-modal__body .ev-form__textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.ev-modal__body .ev-form__textarea {
    resize: vertical;
    min-height: 80px;
}
.ev-modal__body .ev-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .ev-modal__body .ev-form__row { grid-template-columns: 1fr; }
    .ev-modal { margin: 16px; max-height: 95vh; }
}
.ev-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 8px;
}

/* ─── Light theme overrides (plugin) ───────── */
[data-theme="light"] .ev-btn--secondary {
    background: #f0f2f5;
    border-color: rgba(0,0,0,.08);
    color: #475569;
}
[data-theme="light"] .ev-btn--secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .ev-form__input,
[data-theme="light"] .ev-form__textarea,
[data-theme="light"] .ev-form__select {
    background: #fff;
    border-color: rgba(0,0,0,.12);
    color: #1e293b;
}
[data-theme="light"] .ev-form__select option {
    background: #fff;
    color: #1e293b;
}
[data-theme="light"] .ev-form__label { color: #475569; }

[data-theme="light"] .ev-action-card {
    background: #fff;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
[data-theme="light"] .ev-action-card:hover {
    border-color: rgba(99,102,241,.25);
    box-shadow: 0 8px 24px rgba(99,102,241,.08);
}
[data-theme="light"] .ev-action-card__title a { color: #1e293b; }
[data-theme="light"] .ev-action-card__meta { color: #64748b; }
[data-theme="light"] .ev-action-card__excerpt { color: #475569; }

[data-theme="light"] .ev-calendar__cell { background: #fff; }
[data-theme="light"] .ev-calendar__cell--today { background: rgba(99,102,241,.06); }
[data-theme="light"] .ev-calendar__cell--inactive { background: #f8f9fb; }
[data-theme="light"] .ev-calendar__date { color: #1e293b; }
[data-theme="light"] .ev-calendar__grid {
    background: rgba(0,0,0,.06);
    border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .ev-calendar__header h3 { color: #1e293b; }
[data-theme="light"] .ev-calendar__header button {
    background: #f0f2f5;
    border-color: rgba(0,0,0,.08);
    color: #475569;
}
[data-theme="light"] .ev-calendar__header button:hover {
    background: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .ev-filters {
    background: #fff;
    border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .ev-profile__info h2 { color: #1e293b; }
[data-theme="light"] .ev-profile__grid dt { color: #64748b; }
[data-theme="light"] .ev-profile__grid dd { color: #1e293b; }
[data-theme="light"] .ev-profile__section h3 { color: #1e293b; border-bottom-color: rgba(0,0,0,.08); }

[data-theme="light"] .ev-table th {
    color: #64748b;
    border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .ev-table td {
    color: #1e293b;
    border-bottom-color: rgba(0,0,0,.04);
}
[data-theme="light"] .ev-table tr:hover td { background: rgba(99,102,241,.03); }

[data-theme="light"] .ev-action-mgmt-card {
    background: #fff;
    border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .ev-spinner {
    border-color: rgba(0,0,0,.08);
    border-top-color: #6366f1;
}

[data-theme="light"] .ev-pagination a,
[data-theme="light"] .ev-pagination span {
    background: #fff;
    border-color: rgba(0,0,0,.08);
    color: #475569;
}
[data-theme="light"] .ev-pagination a:hover {
    border-color: #818cf8;
    color: #6366f1;
}
[data-theme="light"] .ev-pagination .current {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* Admin panel light mode */
[data-theme="light"] #ev-admin-panel { color: #1e293b; }

[data-theme="light"] .ev-admin__tab { color: #64748b; }
[data-theme="light"] .ev-admin__tab:hover { color: #6366f1; background: rgba(99,102,241,.04); }
[data-theme="light"] .ev-admin__tab.active { color: #6366f1; border-bottom-color: #6366f1; background: rgba(99,102,241,.06); }
[data-theme="light"] .ev-admin__tabs { border-bottom-color: rgba(0,0,0,.08); }

[data-theme="light"] .ev-stat-card {
    background: linear-gradient(145deg, #fff, #f8f9fb);
    border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .ev-stat-card:hover { border-color: rgba(99,102,241,.2); box-shadow: 0 4px 20px rgba(99,102,241,.06); }

[data-theme="light"] .ev-admin__toolbar {
    background: rgba(255,255,255,.8);
    border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .ev-admin__toolbar select,
[data-theme="light"] .ev-admin__toolbar input[type="text"] {
    background: #fff;
    color: #1e293b;
    border-color: rgba(0,0,0,.12);
}
[data-theme="light"] .ev-admin__toolbar select option {
    background: #fff;
    color: #1e293b;
}

[data-theme="light"] .ev-admin-card {
    background: linear-gradient(145deg, #fff, #f8f9fb);
    border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .ev-admin-card:hover { border-color: rgba(99,102,241,.2); }
[data-theme="light"] .ev-admin-card__header h4 { color: #1e293b; }
[data-theme="light"] .ev-admin-card__header p { color: #64748b; }

[data-theme="light"] #ev-admin-panel .ev-table th {
    background: rgba(248,249,251,.8);
    color: #64748b;
    border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] #ev-admin-panel .ev-table td {
    color: #1e293b;
    border-bottom-color: rgba(0,0,0,.04);
}

[data-theme="light"] #ev-admin-panel details summary { color: #6366f1; }
[data-theme="light"] #ev-admin-panel details summary:hover { color: #4f46e5; }

[data-theme="light"] #ev-admin-panel .ev-btn--secondary {
    background: #f0f2f5;
    border-color: rgba(0,0,0,.08);
    color: #475569;
}
[data-theme="light"] #ev-admin-panel .ev-btn--secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Modal light mode */
[data-theme="light"] .ev-modal-overlay { background: rgba(0,0,0,.3); }
[data-theme="light"] .ev-modal {
    background: #fff;
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 24px 80px rgba(0,0,0,.15);
}
[data-theme="light"] .ev-modal__header {
    border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .ev-modal__header h3 { color: #1e293b; }
[data-theme="light"] .ev-modal__body .ev-form__label { color: #475569; }
[data-theme="light"] .ev-modal__body .ev-form__input,
[data-theme="light"] .ev-modal__body .ev-form__textarea {
    background: #f8f9fb;
    border-color: rgba(0,0,0,.1);
    color: #1e293b;
}
[data-theme="light"] .ev-modal__footer { border-top-color: rgba(0,0,0,.06); }

/* Notices light mode */
[data-theme="light"] .ev-notice--success { background: rgba(6,214,160,.08); border-color: rgba(6,214,160,.2); }
[data-theme="light"] .ev-notice--error   { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.2); }
[data-theme="light"] .ev-notice--info    { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); }

/* Blog cards plugin light mode */
[data-theme="light"] .evt-blog-card {
    background: #fff;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
[data-theme="light"] .evt-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border-color: rgba(99,102,241,.2);
}

/* Sender notice light mode */
[data-theme="light"] .ev-sender-notice--logged { background: rgba(6,214,160,.06); }
[data-theme="light"] .ev-sender-notice--anon   { background: rgba(251,191,36,.06); }
