/* NOY - עיצוב בהשראת DogLog: Rubik, צבעי brand כתומים, כרטיסים מעוגלים */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand (orange) - כמו DogLog */
    --brand-50: #fff7ed;
    --brand-100: #ffedd5;
    --brand-200: #fed7aa;
    --brand-300: #fdba74;
    --brand-400: #fb923c;
    --brand-500: #f97316;
    --brand-600: #ea580c;
    --brand-700: #c2410c;
    --brand-800: #9a3412;
    --brand-900: #7c2d12;
    /* Gray */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* Section accents */
    --section-blue: #3b82f6;
    --section-green: #22c55e;
    --section-red: #ef4444;
    --section-orange: #f97316;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Rubik', 'Segoe UI', sans-serif;
    direction: rtl;
    background: var(--gray-50);
    color: var(--gray-800);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.app-body::selection { background: var(--brand-100); color: var(--brand-900); }

/* ========== דף התחברות – עיצוב דו־עמודות כמו בתמונה ========== */
:root {
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
}
body.login-page { margin: 0; padding: 0; min-height: 100vh; }
body.login-split {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
.login-split-form {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2rem;
}
.login-form-inner {
    width: 100%;
    max-width: 380px;
}
.login-form-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
}
.login-logo-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}
.login-form-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}
.login-welcome {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.35rem;
}
.login-instruction {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin: 0 0 1.5rem;
}
.form-login .form-group { margin-bottom: 1.25rem; }
.form-login .form-group-icon .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.form-login label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--gray-700); }
.form-login input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color var(--transition);
}
.form-login input:focus {
    outline: none;
    border-color: var(--teal-500);
}
.form-login .input-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
}
.btn-login-teal {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
    background: var(--teal-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
}
.btn-login-teal:hover { background: var(--teal-700); }
.btn-login-teal .btn-icon { font-size: 1rem; opacity: 0.9; }
.login-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

/* צד פרומו / מוטיבציה */
.login-split-promo {
    width: 45%;
    min-width: 320px;
    background: linear-gradient(160deg, #f0fdfa 0%, #ccfbf1 40%, #99f6e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}
.login-split-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d9488' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.login-promo-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
}
.login-promo-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}
.login-promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
}
.login-promo-accent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-600);
    margin: 0 0 1.5rem;
}
.login-promo-quote {
    background: rgba(255,255,255,0.7);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 1.5rem;
    position: relative;
}
.login-promo-quote .quote-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    background: var(--teal-500);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.login-promo-quote p {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}
.login-promo-powered {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 768px) {
    body.login-split { flex-direction: column; }
    .login-split-form { order: 1; padding: 2rem 1.5rem; min-height: auto; }
    .login-split-promo {
        width: 100%;
        min-width: 0;
        order: 2;
        padding: 2rem 1.5rem;
    }
}

/* ========== Layout: Header + Main + Footer (בסגנון DogLog) ========== */
.app-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}
/* Layout – זהה ל-DogLog: max-w-5xl, h-16, backdrop-blur */
.app-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.app-header-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-800);
}
.app-header .brand-link:hover .brand-icon { background: var(--brand-100); }
.app-header .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background var(--transition);
}
.app-header .brand-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--gray-800); }
.app-header .nav-icon-grid {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    background: linear-gradient(var(--gray-600) 0 0) 0 0 / 45% 45% no-repeat,
                linear-gradient(var(--gray-600) 0 0) 100% 0 / 45% 45% no-repeat,
                linear-gradient(var(--gray-600) 0 0) 0 100% / 45% 45% no-repeat,
                linear-gradient(var(--gray-600) 0 0) 100% 100% / 45% 45% no-repeat;
    border-radius: 2px;
}
.app-header .nav-link-dashboard:hover .nav-icon-grid {
    background-image: linear-gradient(var(--brand-600) 0 0) 0 0 / 45% 45% no-repeat,
                     linear-gradient(var(--brand-600) 0 0) 100% 0 / 45% 45% no-repeat,
                     linear-gradient(var(--brand-600) 0 0) 0 100% / 45% 45% no-repeat,
                     linear-gradient(var(--brand-600) 0 0) 100% 100% / 45% 45% no-repeat;
}
.app-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--transition), color var(--transition);
}
.app-header .nav-link .nav-icon-grid { margin-left: 0.35rem; }
.app-header .nav-link:hover { background: var(--gray-50); color: var(--brand-600); }
.app-header .nav-link.logout { color: #b91c1c; }
.app-header .nav-link.logout:hover { background: #fef2f2; }

.app-main {
    flex: 1;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}
@media (min-width: 640px) { .app-main { padding: 1.5rem; } }
@media (min-width: 1024px) { .app-main { padding: 2rem; } }
.app-footer {
    background: #fff;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}
.app-footer-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ========== Dashboard – כמו DogLog: space-y-8, כותרת text-3xl, כפתור shadow-md ========== */
.dashboard-section { margin-bottom: 2rem; }
.dashboard-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .dashboard-top { flex-direction: row; justify-content: space-between; align-items: center; }
}
.dashboard-top h2 { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.dashboard-top .subtitle { color: var(--gray-500); margin: 0.25rem 0 0; font-size: 1rem; }
.btn-add-dog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.btn-add-dog .btn-add-dog-icon { font-size: 1.25em; font-weight: 300; margin-left: 0.35rem; }
.btn-add-dog:hover {
    background: var(--brand-700);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.dog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .dog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dog-grid { grid-template-columns: repeat(3, 1fr); } }
.dog-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.dog-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-200);
}
.dog-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
    z-index: 0;
}
.dog-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
    overflow: hidden;
}
.dog-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dog-card:hover .dog-card-avatar { transform: scale(1.05); }
.dog-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 0 0 0.25rem; z-index: 1; }
.dog-card .dog-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1rem;
    z-index: 1;
}
.dog-card .dog-meta .dot { margin: 0 0.35rem; color: var(--gray-400); font-weight: 400; }
.dog-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    z-index: 1;
    transition: color var(--transition);
}
.dog-card-footer .dog-card-footer-arrow { font-size: 1.1rem; font-weight: 300; }
.dog-card:hover .dog-card-footer { color: var(--brand-600); }

/* Empty state – כרטיס אפור, אייקון outline, כמו בתמונה */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.empty-state .empty-icon-wrap {
    width: 5rem;
    height: 5rem;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.empty-state .empty-icon { font-size: 2.75rem; opacity: 0.6; filter: grayscale(0.2); }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.empty-state p { color: var(--gray-600); margin: 0.5rem 0 0; text-align: center; max-width: 22rem; font-size: 0.95rem; }
.empty-state .empty-link {
    color: var(--brand-600);
    font-weight: 600;
    margin-top: 1.5rem;
    text-decoration: none;
    font-size: 1rem;
}
.empty-state .empty-link:hover { color: var(--brand-700); text-decoration: underline; }

/* כרטיס הוספת כלב – כמו DogLog: rounded-3xl shadow-soft */
.form-card-dog {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}
.form-card-dog:last-of-type { margin-bottom: 1rem; }
.form-card-dog h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; text-align: center; color: var(--gray-900); }
.form-card-dog .form-subtitle { color: var(--gray-500); margin: 0 0 1.5rem; text-align: center; font-size: 0.95rem; }
.form-card-dog .form-error { background: #fef2f2; color: #b91c1c; padding: 0.75rem 1rem; border-radius: var(--radius-xl); margin-bottom: 1rem; font-size: 0.95rem; }
.form-add-dog .input-file-hidden { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1; }
.form-add-dog .upload-zone-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 2rem; }
.form-add-dog .upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    border: 2px dashed var(--gray-300);
    border-radius: 50%;
    background: var(--gray-50);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: var(--gray-600);
}
.form-add-dog .upload-zone:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--gray-700); }
.form-add-dog .upload-zone-icon { font-size: 2rem; margin-bottom: 0.35rem; opacity: 0.8; }
.form-add-dog .upload-zone-text { font-size: 0.9rem; font-weight: 500; }
.form-add-dog .upload-fab {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.2s;
}
.form-add-dog .upload-fab:hover { background: var(--brand-700); transform: scale(1.05); }
.form-add-dog .form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.1rem; }
.form-add-dog .form-row-two .form-group { flex: 1; min-width: 0; }
.form-add-dog .form-group input[type="text"],
.form-add-dog .form-group input[type="number"] { width: 100%; max-width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); font-size: 1rem; font-family: inherit; background: var(--gray-50); }
.form-add-dog .form-group input:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.form-add-dog .input-age-wrap { display: flex; align-items: center; gap: 0.5rem; }
.form-add-dog .input-age-wrap input { width: 4.5rem; }
.form-add-dog .input-age-unit { font-size: 0.9rem; color: var(--gray-500); }
.form-add-dog .form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; align-items: center; }
.form-add-dog .btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, box-shadow 0.2s;
}
.form-add-dog .btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-lg); }
.form-add-dog .btn-cancel {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.form-add-dog .btn-cancel:hover { background: var(--gray-50); border-color: var(--gray-300); }
.form-add-dog .form-group input[type="file"] { margin-top: 0.25rem; }
.form-add-dog .hint { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; display: block; }
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.form-inline input {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: inherit;
    background: var(--gray-50);
    min-width: 120px;
}
.form-inline input:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.form-inline input[name="name"] { min-width: 140px; }
.form-inline input[name="age"] { min-width: 72px; }
.form-inline input[name="breed"] { min-width: 140px; }
.form-inline button {
    padding: 0.6rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.form-inline button:hover { background: var(--brand-700); }
.dog-list { list-style: none; margin: 0; padding: 0; }
.dog-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 0.5rem;
    background: var(--gray-50);
}
.dog-name { font-weight: 600; color: var(--gray-900); }
.dog-info { color: var(--gray-500); font-size: 0.9rem; }
.btn-link {
    margin-right: auto;
    color: var(--brand-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }
.empty-msg { color: var(--gray-500); margin: 0; }
.export-all { margin: 0 0 1rem; font-size: 0.9rem; }
.export-all a { color: var(--brand-600); font-weight: 500; text-decoration: none; }
.export-all a:hover { text-decoration: underline; }
#form-new-report { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
#form-new-report label { margin-left: 0.25rem; font-weight: 500; }
#form-new-report select {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    min-width: 200px;
    background: var(--gray-50);
}
#form-new-report select:focus { outline: none; border-color: var(--brand-500); }
#form-new-report button {
    padding: 0.6rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}
#form-new-report button:hover { background: var(--brand-700); }

/* ========== History – פרופיל כלב כמו DogLog ========== */
.hero-card {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: var(--brand-50);
    border-radius: 0 0 0 100%;
    opacity: 0.5;
    z-index: 0;
}
@media (min-width: 768px) {
    .hero-card { flex-direction: row; align-items: center; text-align: right; }
    .hero-card.profile-card .hero-body { flex: 1; }
    .hero-card.profile-card .hero-avatar { flex-shrink: 0; margin-left: 1.5rem; }
}
.hero-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: var(--gray-100);
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-body { flex: 1; position: relative; z-index: 1; }
.hero-body h2 { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin: 0 0 0.5rem; }
@media (min-width: 768px) { .hero-body h2 { font-size: 2.25rem; } }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.hero-pills span {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}
.hero-meta { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-actions .btn-hero-icon { font-size: 1.1rem; font-weight: 300; }
.btn-hero.btn-hero-icon-only { padding: 0.6rem; min-width: 2.75rem; }
.btn-hero.btn-hero-icon-only .btn-hero-icon { margin: 0; }
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.btn-hero.primary { background: var(--gray-900); color: #fff; }
.btn-hero.primary:hover { background: #000; }
.btn-hero.secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-hero.secondary:hover { background: var(--gray-200); color: var(--gray-900); border-color: var(--gray-300); }
.btn-hero.danger { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-hero.danger:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-hero.btn-hero-icon-only.danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.section-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}
.section-head .section-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--brand-100);
    color: var(--brand-600);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 0.35rem;
}
.section-head .section-icon-orange { background: var(--brand-100); color: var(--brand-600); }
.report-badge { font-size: 0.875rem; color: var(--gray-500); }
.report-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.report-card:hover { box-shadow: var(--shadow-md); }
.report-card-header {
    background: rgba(249, 250, 251, 0.5);
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.report-card-date { font-weight: 700; color: var(--gray-900); font-size: 1.1rem; }
.report-card-meta { color: var(--gray-500); font-size: 0.9rem; }
.report-actions { display: flex; gap: 0.5rem; }
.btn-export {
    padding: 0.4rem 0.75rem;
    background: #fff;
    color: var(--brand-600);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: background 0.2s, color 0.2s;
}
.btn-export:hover { background: var(--brand-600); color: #fff; }
.btn-export.btn-edit { background: var(--gray-100); color: var(--gray-700); }
.btn-export.btn-edit:hover { background: var(--brand-500); color: #fff; }
.report-actions .btn-delete-report { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.report-actions .btn-delete-report:hover { background: #b91c1c; color: #fff; }
.report-card-body { padding: 1.5rem; }
.report-section-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}
.report-section-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}
.report-section-box.general { border-right-color: var(--section-blue); }
.report-section-box.general::before { background: var(--section-blue); }
.report-section-box.progress { border-right-color: var(--section-green); }
.report-section-box.progress::before { background: var(--section-green); }
.report-section-box.difficulties { border-right-color: var(--section-red); }
.report-section-box.difficulties::before { background: var(--section-red); }
.report-section-box.work { border-right-color: var(--section-orange); }
.report-section-box.work::before { background: var(--section-orange); }
.report-section-box.goals { border-right-color: var(--brand-600); background: rgba(255,237,213,.3); }
.report-section-box.goals::before { background: var(--brand-600); }
.report-section-box h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.5rem; }
.report-section-box.general h4 { color: var(--section-blue); }
.report-section-box.progress h4 { color: var(--section-green); }
.report-section-box.difficulties h4 { color: var(--section-red); }
.report-section-box.work h4 { color: var(--section-orange); }
.report-section-box.goals h4 { color: var(--brand-800); }
.report-section-box p { margin: 0; font-size: 0.95rem; color: var(--gray-700); line-height: 1.5; white-space: pre-wrap; }
.report-preview { font-size: 0.9rem; color: var(--gray-600); white-space: pre-wrap; }
.empty-reports {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: var(--radius-3xl);
    border: 1px dashed var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.empty-reports .empty-icon,
.empty-reports .empty-reports-icon-wrap { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.45; }
.empty-reports .empty-reports-icon-wrap { display: inline-block; }
.empty-reports p { color: var(--gray-500); margin: 0; font-weight: 500; }
.empty-reports a { color: var(--brand-600); font-size: 0.9rem; margin-top: 0.75rem; display: inline-block; font-weight: 500; }
.empty-reports a:hover { text-decoration: underline; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: inherit;
}
.btn-primary:hover { background: var(--brand-700); }

/* ========== דוח חדש (report.php) ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--brand-600); }
.report-form-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}
.report-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}
.report-form-card h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.report-form-card .hint { color: var(--gray-500); margin: 0 0 1rem; font-size: 0.95rem; }
.record-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.btn-record {
    padding: 0.8rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-record:hover { background: var(--brand-700); }
.btn-record.recording { background: #ef4444; }
.record-status { font-size: 0.9rem; color: var(--gray-500); }
.transcript-area { margin-top: 1rem; }
.transcript-area label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.transcript-area textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: var(--gray-50);
}
.transcript-area textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.95rem; color: var(--gray-600); }
.form-group-with-record label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.btn-record-section {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.btn-record-section:hover { background: var(--brand-700); }
.btn-record-section.recording { background: #ef4444; }
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: var(--gray-50);
}
.form-group textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.btn-save {
    padding: 0.7rem 1.5rem;
    background: var(--brand-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.btn-save:hover { background: var(--brand-700); }
.save-result { margin-top: 1rem; font-size: 0.95rem; }
.save-result.success { color: var(--brand-600); font-weight: 500; }
.save-result.error { color: #b91c1c; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
