/* ===== Resume Manager Frontend CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

.rm-form-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
}

/* ── Glass Card ── */
.rm-glass-card {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 130, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 1px 0 rgba(255,255,255,0.08) inset;
    position: relative;
    overflow: hidden;
}

.rm-glass-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(30,130,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.rm-glass-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(100,60,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Header ── */
.rm-form-header { text-align: center; margin-bottom: 32px; }
.rm-form-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.rm-form-title { font-size: 24px; font-weight: 700; color: #e6edf3; margin: 0 0 8px; }
.rm-form-subtitle { color: #8b949e; font-size: 14px; margin: 0; }

/* ── Alert ── */
.rm-alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}
.rm-alert-success { background: rgba(56,211,159,.1); border: 1px solid rgba(56,211,159,.4); color: #3fb950; }
.rm-alert-error   { background: rgba(248,81,73,.1);  border: 1px solid rgba(248,81,73,.4);  color: #f85149; }

/* ── Field Groups ── */
.rm-field-group { margin-bottom: 18px; }
.rm-field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
@media(max-width:520px){ .rm-field-row-2 { grid-template-columns: 1fr; } }

.rm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 8px;
}
.rm-req { color: #f85149; }

/* ── Inputs ── */
.rm-input,
.rm-select,
.rm-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #e6edf3;
    padding: 11px 16px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    box-sizing: border-box;
    direction: rtl;
}
.rm-input:focus, .rm-select:focus, .rm-textarea:focus {
    border-color: rgba(30,130,255,0.7);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(30,130,255,0.15);
}
.rm-input::placeholder, .rm-textarea::placeholder { color: #484f58; }
.rm-select option { background: #161b22; color: #e6edf3; }
.rm-textarea { resize: vertical; min-height: 110px; }

/* ── File Drop Zone ── */
.rm-file-zone {
    border: 2px dashed rgba(30,130,255,0.35);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: rgba(30,130,255,0.04);
    position: relative;
}
.rm-file-zone:hover, .rm-file-zone.rm-drag-over {
    border-color: rgba(30,130,255,0.8);
    background: rgba(30,130,255,0.1);
}
.rm-file-placeholder, .rm-file-selected {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #8b949e; font-size: 14px; pointer-events: none;
}
.rm-file-selected { color: #3fb950; }
.rm-file-icon { font-size: 32px; }
.rm-file-placeholder strong { color: #58a6ff; }
.rm-file-placeholder small { font-size: 12px; color: #484f58; }

/* ── Submit Button ── */
.rm-submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #1e82ff 0%, #0056d6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
    letter-spacing: .3px;
}
.rm-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3291ff 0%, #1e82ff 100%);
    box-shadow: 0 6px 24px rgba(30,130,255,0.45);
    transform: translateY(-1px);
}
.rm-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Spinner ── */
.rm-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rm-spin .7s linear infinite;
    vertical-align: middle;
}
@keyframes rm-spin { to { transform: rotate(360deg); } }
