:root {
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --sidebar-width: 250px;
    --topbar-height: 72px;

    --transition: 0.2s ease;
}

/* =========================================================
   TEMA 1 - AKZUR GOLD
   ========================================================= */

body[data-theme="theme-gold"] {
    --bg-main: #120d07;
    --bg-sidebar: #181006;
    --bg-topbar: #1b1208;

    --bg-card: #21160a;
    --bg-card-hover: #2c1d0d;
    --bg-input: #170f07;

    --primary: #d99a2b;
    --primary-soft: #f3bd52;
    --primary-glow: rgba(217, 154, 43, 0.28);

    --text-main: #fff5dc;
    --text-muted: #c9b38e;

    --border: #4b3317;
    --border-hover: #d99a2b;

    --success: #40c985;
    --warning: #f3bd52;
    --danger: #e76d76;
}

/* =========================================================
   TEMA 2 - MAVİ LACİVERT
   ========================================================= */

body[data-theme="theme-blue"] {
    --bg-main: #07111f;
    --bg-sidebar: #0b1626;
    --bg-topbar: #0b1626;

    --bg-card: #111f33;
    --bg-card-hover: #162a44;
    --bg-input: #0b1727;

    --primary: #2f80ed;
    --primary-soft: #4da3ff;
    --primary-glow: rgba(47, 128, 237, 0.28);

    --text-main: #f4f7fb;
    --text-muted: #8fa3bd;

    --border: #1d3350;
    --border-hover: #2f80ed;

    --success: #27c281;
    --warning: #f5b942;
    --danger: #e85d75;
}

/* =========================================================
   TEMA 3 - SİYAH + NEON MAVİ
   ========================================================= */

body[data-theme="theme-neon"] {
    --bg-main: #02070c;
    --bg-sidebar: #040b12;
    --bg-topbar: #030a11;

    --bg-card: #07131d;
    --bg-card-hover: #0b1e2b;
    --bg-input: #06111a;

    --primary: #00c8ff;
    --primary-soft: #41ddff;
    --primary-glow: rgba(0, 200, 255, 0.30);

    --text-main: #e9fbff;
    --text-muted: #7ea9b5;

    --border: #123547;
    --border-hover: #00c8ff;

    --success: #00d98b;
    --warning: #ffd04a;
    --danger: #ff5572;
}

/* =========================================================
   TEMA 4 - AÇIK / BEYAZ
   ========================================================= */

body[data-theme="theme-light"] {
    --bg-main: #f4f7fb;
    --bg-sidebar: #ffffff;
    --bg-topbar: #ffffff;

    --bg-card: #ffffff;
    --bg-card-hover: #eef4fb;
    --bg-input: #f8fafc;

    --primary: #2563eb;
    --primary-soft: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.18);

    --text-main: #182334;
    --text-muted: #637083;

    --border: #d8e0ea;
    --border-hover: #2563eb;

    --success: #16a36c;
    --warning: #d99713;
    --danger: #d84b63;
}

/* =========================================================
   TEMA 5 - SİYAH + TURUNCU
   ========================================================= */

body[data-theme="theme-orange"] {
    --bg-main: #0b0907;
    --bg-sidebar: #110d09;
    --bg-topbar: #100c08;

    --bg-card: #19120d;
    --bg-card-hover: #26190f;
    --bg-input: #140f0b;

    --primary: #ff7a00;
    --primary-soft: #ff9b3d;
    --primary-glow: rgba(255, 122, 0, 0.28);

    --text-main: #fff4e9;
    --text-muted: #c9aa91;

    --border: #4b2c15;
    --border-hover: #ff7a00;

    --success: #32c982;
    --warning: #ffb13b;
    --danger: #ef5e64;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    transition:
        background var(--transition),
        color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
a,
.card,
.nav-item,
.category-item,
.calendar-day,
.calendar-event,
.quick-add-item,
.reminder-item,
.archive-summary-item,
.timeline-item,
.profile-button,
.icon-button,
.topbar-search-button {
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

/* =========================================================
   ANA YAPI
   ========================================================= */

.app-shell {
    min-height: 100vh;
    background: var(--bg-main);
}

.app-body {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;

    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 230px;
}

.topbar-center {
    flex: 1;
    justify-content: center;
}

.topbar-right {
    min-width: 260px;
    justify-content: flex-end;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-soft)
    );

    color: #fff;
    font-size: 20px;
    font-weight: 700;

    box-shadow: 0 8px 24px var(--primary-glow);
}

.brand:hover .brand-icon {
    transform: rotate(-4deg) scale(1.06);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 17px;
}

.brand-text span {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.brand:hover .brand-text strong {
    color: var(--primary-soft);
}

.topbar-search-button {
    width: min(420px, 100%);
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-card);
    color: var(--text-muted);

    text-align: left;
    padding: 0 16px;
}

.topbar-search-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-1px);
}

.icon-button {
    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-card);
    color: var(--text-main);
}

.icon-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.profile-button {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 5px 12px 5px 6px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--bg-card);
    color: var(--text-main);
}

.profile-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-avatar {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: #fff;

    font-weight: 700;
}

.profile-text {
    font-size: 14px;
}

/* =========================================================
   TEMA PALETİ
   ========================================================= */

.theme-switcher {
    position: relative;
}

.theme-palette {
    position: absolute;
    top: 50px;
    right: 0;

    display: none;

    gap: 8px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--bg-card);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.28);

    z-index: 300;
}

.theme-palette.open {
    display: flex;
}

.theme-swatch {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    border: 2px solid transparent;

    padding: 0;
}

.theme-swatch:hover {
    transform: scale(1.14);
    border-color: var(--text-main);
}

.theme-swatch.active {
    border-color: var(--text-main);
    box-shadow:
        0 0 0 3px
        var(--primary-glow);
}

.theme-swatch.theme-gold {
    background:
        linear-gradient(
            135deg,
            #191006,
            #d99a2b
        );
}

.theme-swatch.theme-blue {
    background:
        linear-gradient(
            135deg,
            #07111f,
            #2f80ed
        );
}

.theme-swatch.theme-neon {
    background:
        linear-gradient(
            135deg,
            #02070c,
            #00c8ff
        );
}

.theme-swatch.theme-light {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #2563eb
        );
}

.theme-swatch.theme-orange {
    background:
        linear-gradient(
            135deg,
            #0b0907,
            #ff7a00
        );
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);

    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);

    padding: 18px 14px 28px;

    min-height: calc(100vh - var(--topbar-height));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 12px;

    border-radius: 11px;

    color: var(--text-muted);
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: color-mix(
        in srgb,
        var(--primary) 16%,
        transparent
    );

    color: var(--primary-soft);

    border: 1px solid
        color-mix(
            in srgb,
            var(--primary) 25%,
            transparent
        );
}

.nav-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.nav-text {
    font-size: 14px;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 4px;
}

.nav-title {
    padding: 0 12px 7px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 12px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: var(--text-muted);

    text-align: left;
}

.category-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    transform: translateX(4px);
}

.category-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.category-blue {
    background: #4da3ff;
}

.category-green {
    background: #27c281;
}

.category-red {
    background: #e85d75;
}

.category-yellow {
    background: #f5b942;
}

.category-purple {
    background: #9b7cff;
}

.add-category-button {
    margin-top: 8px;

    width: 100%;
    min-height: 40px;

    border: 1px dashed var(--border);
    border-radius: 10px;

    background: transparent;
    color: var(--primary-soft);
}

.add-category-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =========================================================
   MAIN
   ========================================================= */

.main-content {
    flex: 1;
    min-width: 0;

    padding: 24px;

    background:
        radial-gradient(
            circle at top right,
            var(--primary-glow),
            transparent 32%
        ),
        var(--bg-main);
}

.page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 22px;
}

.page-title-group h1 {
    font-size: 28px;
}

.page-title-group p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    min-height: 42px;

    border-radius: 11px;
    border: 1px solid var(--border);

    padding: 0 16px;

    background: var(--bg-card);
    color: var(--text-main);

    font-weight: 600;
}

.btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px
        var(--primary-glow);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    padding: 18px;
}

.card:hover {
    border-color: var(--border-hover);

    box-shadow:
        0 12px 32px
        rgba(0, 0, 0, 0.16);
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 20px;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================================
   TAKVİM
   ========================================================= */

.calendar-card {
    padding: 0;
    overflow: hidden;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid var(--border);
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 14px;
}

.calendar-nav-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--bg-input);
    color: var(--text-main);

    font-size: 26px;
}

.calendar-nav-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        var(--primary-glow);
}

.calendar-month-title {
    min-width: 150px;
    text-align: center;
}

.calendar-month-title strong {
    display: block;
    font-size: 20px;
}

.calendar-month-title span {
    color: var(--text-muted);
    font-size: 13px;
}

.calendar-view-buttons {
    display: flex;

    padding: 4px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-input);
}

.view-button {
    min-height: 34px;

    padding: 0 13px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;
}

.view-button:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.view-button.active {
    background: var(--primary);
    color: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week-header {
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}

.calendar-week-day {
    padding: 11px 8px;

    color: var(--text-muted);

    text-align: center;
    font-size: 12px;
    font-weight: 700;

    border-right: 1px solid var(--border);
}

.calendar-day {
    min-height: 118px;

    padding: 10px;

    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: transparent;
    color: var(--text-main);

    text-align: left;

    position: relative;
}

.calendar-day:hover {
    background: var(--bg-card-hover);

    box-shadow:
        inset 0 0 0 1px
        var(--primary);

    transform: translateY(-2px);

    z-index: 2;
}

.calendar-day.empty-day {
    opacity: 0.35;
    cursor: default;
}

.calendar-day.empty-day:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    background:
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );
}

.calendar-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 9px;
}

.calendar-day-number {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 700;
}

.calendar-day.today .calendar-day-number {
    background: var(--primary);
    color: #fff;

    box-shadow:
        0 5px 14px
        var(--primary-glow);
}

.today-label {
    color: var(--primary-soft);
    font-size: 10px;
    font-weight: 700;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-event {
    padding: 5px 7px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    border-left: 3px solid var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 16%,
            transparent
        );

    color: var(--text-main);
}

.calendar-event:hover {
    transform: translateX(3px);
    filter: brightness(1.13);
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 18px;
}

.section-header.compact {
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 17px;
}

.section-header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.section-link {
    color: var(--primary-soft);
    font-size: 12px;
    font-weight: 700;
}

.section-link:hover {
    color: var(--text-main);
    transform: translateX(2px);
}

.small-action-button {
    min-height: 34px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--bg-input);
    color: var(--primary-soft);

    font-size: 12px;
    font-weight: 700;
}

.small-action-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   BUGÜNÜN PLANI
   ========================================================= */

.today-plan-card {
    margin-top: 20px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;

    grid-template-columns:
        58px
        16px
        1fr;

    align-items: center;

    gap: 10px;

    min-height: 60px;

    padding: 7px 8px;

    border-radius: 10px;
}

.timeline-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(3px);
}

.timeline-time {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.timeline-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 4px
        var(--primary-glow);
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-content span {
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
   HIZLI EKLE
   ========================================================= */

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.quick-add-item {
    min-height: 84px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-input);
    color: var(--text-main);
}

.quick-add-item span {
    font-size: 22px;
}

.quick-add-item strong {
    font-size: 12px;
}

.quick-add-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);

    transform: translateY(-3px);

    box-shadow:
        0 10px 22px
        var(--primary-glow);
}

/* =========================================================
   HATIRLATMALAR
   ========================================================= */

.reminder-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.reminder-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    border: 1px solid transparent;
    border-radius: 11px;
}

.reminder-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);

    transform: translateX(3px);
}

.reminder-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--bg-input);
}

.reminder-content {
    display: flex;
    flex-direction: column;
}

.reminder-content span {
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================================
   ARŞİV
   ========================================================= */

.archive-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.archive-summary-item {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 64px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--bg-input);
}

.archive-summary-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);

    transform: translateY(-2px);
}

.archive-summary-item > span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        color-mix(
            in srgb,
            var(--primary) 14%,
            transparent
        );
}

.archive-summary-item div {
    display: flex;
    flex-direction: column;
}

.archive-summary-item small {
    color: var(--text-muted);
    font-size: 10px;
}

/* =========================================================
   FORMLAR
   ========================================================= */

.form-control {
    width: 100%;
    min-height: 42px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--bg-input);
    color: var(--text-main);

    padding: 10px 12px;

    outline: none;
}

.form-control:hover {
    border-color: var(--primary);
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        var(--primary-glow);
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color:
        var(--primary)
        var(--bg-sidebar);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    :root {
        --sidebar-width: 210px;
    }

    .topbar-center {
        display: none;
    }

    .topbar-left,
    .topbar-right {
        min-width: auto;
    }

    .profile-text {
        display: none;
    }

}

@media (max-width: 700px) {

    .topbar {
        height: 64px;
        padding: 0 12px;
    }

    .brand-text span {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .dashboard-side {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        overflow-x: auto;
    }

    .calendar-toolbar,
    .calendar-week-header,
    .calendar-days {
        min-width: 700px;
    }

}

@media (max-width: 480px) {

    .brand-text strong {
        font-size: 15px;
    }

    .quick-add-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-summary {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   LOGIN SAYFASI
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at top right,
            var(--primary-glow),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom left,
            var(--primary-glow),
            transparent 28%
        ),
        var(--bg-main);

    position: relative;
}

.login-theme-area {
    position: fixed;
    top: 20px;
    right: 20px;

    z-index: 500;
}

.login-card {
    width: 100%;
    max-width: 430px;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--bg-card);

    box-shadow:
        0 22px 60px
        rgba(0, 0, 0, 0.28);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.login-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow:
        0 28px 70px
        rgba(0, 0, 0, 0.34),
        0 0 30px
        var(--primary-glow);
}

.login-logo {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;

    box-shadow:
        0 14px 32px
        var(--primary-glow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.login-logo:hover {
    transform:
        rotate(-4deg)
        scale(1.06);

    box-shadow:
        0 18px 42px
        var(--primary-glow);
}

.login-title {
    text-align: center;

    margin-bottom: 26px;
}

.login-title h1 {
    font-size: 29px;
    line-height: 1.2;

    color: var(--text-main);
}

.login-title p {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 14px;
}

/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group label {
    color: var(--text-main);

    font-size: 13px;
    font-weight: 700;
}

.login-form .form-control {
    min-height: 48px;

    border-radius: 12px;

    padding:
        0 14px;

    background: var(--bg-input);
}

.login-form .form-control:hover {
    border-color: var(--primary);

    box-shadow:
        0 0 0 2px
        var(--primary-glow);
}

.login-form .form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        var(--primary-glow);
}

/* =========================================================
   PASSWORD ALANI
   ========================================================= */

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;

    right: 6px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: var(--text-muted);

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.password-toggle:hover {
    background: var(--bg-card-hover);

    border-color: var(--primary);

    color: var(--text-main);

    transform:
        translateY(-50%)
        scale(1.05);
}

/* =========================================================
   GİRİŞ BUTONU
   ========================================================= */

.login-submit {
    width: 100%;
    min-height: 50px;

    margin-top: 4px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;
}

.login-submit:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px
        var(--primary-glow);
}

/* =========================================================
   HATA MESAJI
   ========================================================= */

.login-error {
    margin-bottom: 18px;

    padding: 12px 14px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--danger) 55%,
            transparent
        );

    border-radius: 11px;

    background:
        color-mix(
            in srgb,
            var(--danger) 12%,
            transparent
        );

    color: var(--danger);

    font-size: 13px;
    font-weight: 600;

    text-align: center;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.login-error:hover {
    transform: translateY(-2px);

    border-color: var(--danger);

    background:
        color-mix(
            in srgb,
            var(--danger) 18%,
            transparent
        );
}

/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.login-footer span {
    color: var(--text-muted);

    font-size: 12px;
}

/* =========================================================
   LOGIN TEMA PALETİ
   ========================================================= */

.login-theme-area .theme-palette {
    top: 52px;
    right: 0;
}

.login-theme-area .icon-button:hover {
    transform:
        translateY(-2px)
        rotate(5deg)
        scale(1.05);
}

/* =========================================================
   LOGIN RESPONSIVE
   ========================================================= */

@media (max-width: 520px) {

    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 26px 20px;

        border-radius: 18px;
    }

    .login-logo {
        width: 58px;
        height: 58px;

        font-size: 26px;
    }

    .login-title h1 {
        font-size: 25px;
    }

    .login-theme-area {
        top: 12px;
        right: 12px;
    }

}

/* =========================================================
   PROFIL / KULLANICI AÇILIR MENÜ
   ========================================================= */

.profile-menu-wrapper {
    position: relative;
}

.profile-button {
    position: relative;
}

.profile-arrow {
    margin-left: 2px;
    font-size: 11px;
    color: var(--text-muted);

    transition:
        transform var(--transition),
        color var(--transition);
}

.profile-menu-wrapper.open .profile-arrow {
    transform: rotate(180deg);
    color: var(--primary-soft);
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.profile-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 280px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg-card);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.30);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.98);

    transform-origin: top right;

    pointer-events: none;

    z-index: 500;

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.profile-menu-wrapper.open .profile-dropdown {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}

/* =========================================================
   DROPDOWN ÜST KULLANICI BİLGİSİ
   ========================================================= */

.profile-dropdown-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px;
}

.profile-dropdown-header:hover {
    background: var(--bg-card-hover);

    border-radius: 12px;
}

.profile-dropdown-avatar {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    box-shadow:
        0 7px 20px
        var(--primary-glow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.profile-dropdown-header:hover
.profile-dropdown-avatar {
    transform: scale(1.06);

    box-shadow:
        0 10px 26px
        var(--primary-glow);
}

.profile-dropdown-user {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.profile-dropdown-user strong {
    color: var(--text-main);

    font-size: 14px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-user span {
    color: var(--text-muted);

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   AYIRICI
   ========================================================= */

.profile-dropdown-divider {
    height: 1px;

    margin: 7px 4px;

    background: var(--border);
}

/* =========================================================
   MENU SATIRLARI
   ========================================================= */

.profile-dropdown-item {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 11px;

    border: 1px solid transparent;
    border-radius: 11px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;
}

.profile-dropdown-item > span:first-child {
    width: 24px;

    text-align: center;

    font-size: 17px;

    transition:
        transform var(--transition);
}

.profile-dropdown-item:hover {
    background: var(--bg-card-hover);

    border-color:
        color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );

    color: var(--text-main);

    transform: translateX(3px);
}

.profile-dropdown-item:hover
> span:first-child {
    transform: scale(1.12);
}

/* =========================================================
   ÇIKIŞ YAP
   ========================================================= */

.profile-dropdown-logout {
    color: var(--danger);
}

.profile-dropdown-logout:hover {
    color: var(--danger);

    border-color:
        color-mix(
            in srgb,
            var(--danger) 45%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            var(--danger) 10%,
            transparent
        );
}

/* =========================================================
   PROFIL BUTONU AÇIKKEN
   ========================================================= */

.profile-menu-wrapper.open
.profile-button {
    border-color: var(--primary);

    background: var(--bg-card-hover);

    box-shadow:
        0 7px 22px
        var(--primary-glow);
}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 520px) {

    .profile-dropdown {
        width: 260px;

        right: -4px;
    }

}

/* =========================================================
   PROFIL SAYFASI
   ========================================================= */

.profile-page {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));

    padding: 28px;

    background:
        radial-gradient(
            circle at top right,
            var(--primary-glow),
            transparent 28%
        ),
        var(--bg-main);
}

.profile-page-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================================================
   PROFIL BASLIK
   ========================================================= */

.profile-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 24px;
}

.profile-page-heading h1 {
    font-size: 30px;
    color: var(--text-main);
}

.profile-page-heading p {
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
   PROFIL MESAJLARI
   ========================================================= */

.profile-message {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.profile-message:hover {
    transform: translateY(-2px);
}

.profile-message-success {
    border: 1px solid var(--success);

    background:
        color-mix(
            in srgb,
            var(--success) 12%,
            transparent
        );

    color: var(--success);
}

.profile-message-success:hover {
    box-shadow:
        0 8px 20px
        color-mix(
            in srgb,
            var(--success) 22%,
            transparent
        );
}

.profile-message-error {
    border: 1px solid var(--danger);

    background:
        color-mix(
            in srgb,
            var(--danger) 12%,
            transparent
        );

    color: var(--danger);
}

.profile-message-error:hover {
    box-shadow:
        0 8px 20px
        color-mix(
            in srgb,
            var(--danger) 22%,
            transparent
        );
}

/* =========================================================
   PROFIL FORM
   ========================================================= */

.profile-form {
    width: 100%;
}

/* =========================================================
   PROFIL HERO
   ========================================================= */

.profile-hero-card {
    margin-bottom: 22px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--primary) 8%,
                var(--bg-card)
            ),
            var(--bg-card)
        );

    box-shadow:
        0 12px 34px
        rgba(0, 0, 0, 0.14);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.profile-hero-card:hover {
    transform: translateY(-2px);

    border-color: var(--primary);

    box-shadow:
        0 16px 42px
        rgba(0, 0, 0, 0.18),
        0 0 24px
        var(--primary-glow);
}

.profile-photo-section {
    display: flex;
    align-items: center;

    gap: 24px;
}

.profile-photo-preview {
    width: 130px;
    height: 130px;

    flex: 0 0 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 3px solid var(--primary);
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #fff;

    font-size: 46px;
    font-weight: 800;

    box-shadow:
        0 12px 32px
        var(--primary-glow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.profile-photo-preview:hover {
    transform: scale(1.04);

    box-shadow:
        0 16px 40px
        var(--primary-glow);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition),
        filter var(--transition);
}

.profile-photo-preview:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.profile-photo-actions {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.profile-photo-actions h2 {
    font-size: 23px;
    color: var(--text-main);
}

.profile-photo-actions p {
    margin-top: 4px;

    color: var(--text-muted);
    font-size: 13px;
}

.profile-photo-button {
    margin-top: 15px;
}

.profile-photo-actions small {
    margin-top: 8px;

    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================================
   PROFIL KART GRID
   ========================================================= */

.profile-sections-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.profile-section-card {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg-card);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.profile-section-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, 0.16),
        0 0 18px
        var(--primary-glow);
}

.profile-section-title {
    margin-bottom: 18px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);
}

.profile-section-title h2 {
    font-size: 18px;
    color: var(--text-main);
}

.profile-section-title p {
    margin-top: 4px;

    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
   PROFIL FORM ALANLARI
   ========================================================= */

.profile-fields-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-section-card .form-group {
    gap: 8px;
}

.profile-section-card .form-group label {
    color: var(--text-main);

    font-size: 12px;
    font-weight: 700;
}

.profile-section-card .form-control {
    min-height: 46px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--bg-input);
    color: var(--text-main);

    padding: 10px 13px;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.profile-section-card .form-control:hover {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 4%,
            var(--bg-input)
        );

    transform: translateY(-1px);
}

.profile-section-card .form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        var(--primary-glow);

    transform: translateY(-1px);
}

.profile-section-card textarea.form-control {
    min-height: 125px;

    resize: vertical;

    line-height: 1.5;
}

/* =========================================================
   PROFIL ALT KAYDET BARI
   ========================================================= */

.profile-save-bar {
    margin-top: 22px;

    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg-card);

    position: sticky;
    bottom: 14px;

    z-index: 40;

    box-shadow:
        0 12px 34px
        rgba(0, 0, 0, 0.22);

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.profile-save-bar:hover {
    border-color: var(--primary);

    box-shadow:
        0 14px 38px
        rgba(0, 0, 0, 0.26),
        0 0 18px
        var(--primary-glow);
}

.profile-save-info {
    color: var(--text-muted);

    font-size: 12px;
}

.profile-save-button {
    min-width: 210px;
    min-height: 46px;
}

.profile-save-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 28px
        var(--primary-glow);
}

/* =========================================================
   PROFIL SAYFASINDA HEADER ALT YAPI
   sidebar kullanılmadığı için body tam genişlik olur
   ========================================================= */

.profile-page + * {
    box-sizing: border-box;
}

/* =========================================================
   PROFIL MOBIL / TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .profile-sections-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .profile-page {
        padding: 18px 14px;
    }

    .profile-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-page-heading .btn {
        width: 100%;
    }

    .profile-hero-card {
        padding: 22px 18px;
    }

    .profile-photo-section {
        flex-direction: column;

        text-align: center;
    }

    .profile-photo-actions {
        align-items: center;
    }

    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-full {
        grid-column: auto;
    }

    .profile-save-bar {
        flex-direction: column;

        align-items: stretch;
    }

    .profile-save-info {
        text-align: center;
    }

    .profile-save-button {
        width: 100%;
        min-width: 0;
    }

}

@media (max-width: 480px) {

    .profile-photo-preview {
        width: 110px;
        height: 110px;

        flex-basis: 110px;

        font-size: 38px;
    }

    .profile-section-card {
        padding: 17px;
    }

}

/* =========================================================
   EMAIL ACCOUNTS SAYFASI
   ========================================================= */

.standalone-content {
    width: 100%;
}

.email-page {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));

    padding: 28px;

    background:
        radial-gradient(
            circle at top right,
            var(--primary-glow),
            transparent 28%
        ),
        var(--bg-main);
}

.email-page-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

/* =========================================================
   SAYFA BAŞLIK
   ========================================================= */

.email-page .profile-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 24px;
}

.email-page .profile-page-heading h1 {
    font-size: 30px;
    color: var(--text-main);
}

.email-page .profile-page-heading p {
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
   ANA YERLEŞİM
   ========================================================= */

.email-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;

    align-items: start;
    justify-content: center;
}

/* =========================================================
   PANELLER
   ========================================================= */

.email-accounts-panel,
.email-add-panel {
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--bg-card);

    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.16);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.email-accounts-panel:hover,
.email-add-panel:hover {
    transform: translateY(-2px);

    border-color: var(--primary);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.20),
        0 0 18px var(--primary-glow);
}

/* =========================================================
   KAYITLI HESAPLAR
   ========================================================= */

.email-empty {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    text-align: center;

    border: 1px dashed var(--border);
    border-radius: 16px;

    color: var(--text-muted);

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.email-empty:hover {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 4%,
            transparent
        );

    transform: translateY(-2px);
}

.email-empty-icon {
    font-size: 34px;
}

.email-empty strong {
    color: var(--text-main);
    font-size: 16px;
}

.email-empty span {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.5;
}

.email-account-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-account-card {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--bg-card-hover);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.email-account-card:hover {
    transform: translateY(-2px);

    border-color: var(--primary);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.18),
        0 0 16px var(--primary-glow);
}

.email-account-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #fff;
    font-size: 18px;
}

.email-account-info {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.email-account-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.email-account-title strong {
    color: var(--text-main);
    font-size: 15px;
}

.email-default-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 0 10px;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--primary) 16%,
            transparent
        );

    color: var(--primary-soft);

    font-size: 11px;
    font-weight: 700;
}

.email-account-address,
.email-account-provider,
.email-account-server {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;

    word-break: break-word;
}

.email-account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-delete-form {
    margin: 0;
}

.email-test-btn,
.email-delete-btn {
    min-width: 140px;
}

/* =========================================================
   FORM ALANI
   ========================================================= */

.email-account-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-account-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-account-form .form-group label {
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

.email-account-form .form-control {
    min-height: 46px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-input);
    color: var(--text-main);

    padding: 10px 13px;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.email-account-form .form-control:hover {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 4%,
            var(--bg-input)
        );

    transform: translateY(-1px);
}

.email-account-form .form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px var(--primary-glow);

    transform: translateY(-1px);
}

.email-provider-notice {
    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        color-mix(
            in srgb,
            var(--primary) 5%,
            transparent
        );

    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.email-form-divider {
    margin-top: 8px;
    padding-top: 4px;
}

.email-form-divider span {
    display: inline-flex;
    align-items: center;

    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--bg-card-hover);

    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

.email-default-option {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-card-hover);

    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.email-default-option:hover {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 5%,
            var(--bg-card-hover)
        );

    transform: translateY(-1px);
}

.email-save-button {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
}

.email-save-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px var(--primary-glow);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .email-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .email-page {
        padding: 18px 14px;
    }

    .email-page .profile-page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .email-page .profile-page-heading .btn {
        width: 100%;
    }

    .email-accounts-panel,
    .email-add-panel {
        padding: 18px;
    }

    .email-account-card {
        flex-direction: column;
    }

    .email-account-actions {
        width: 100%;
    }

    .email-test-btn,
    .email-delete-btn {
        width: 100%;
    }
}

/* =========================================================
   MAILBOX DEBUG
   ========================================================= */

.mailbox-debug-card {
    margin-top: 18px;

    max-width: 650px;

    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--bg-card);

    color: var(--text-muted);
}

.mailbox-debug-card strong {
    color: var(--text-main);
    margin-bottom: 4px;
}

.mailbox-debug-card span {
    font-size: 13px;
}

.mailbox-debug-card small {
    margin-top: 5px;
    font-size: 11px;
}

/* =========================================================
   MAIL VIEW
   ========================================================= */

.mail-view-page {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));

    padding: 28px;

    background: var(--bg-main);
}

.mail-view-container {
    width: 100%;
    max-width: 1380px;

    margin: 0 auto;
}

.mail-view-card {
    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--bg-card);

    overflow: hidden;

    box-shadow:
        0 14px 38px
        rgba(0, 0, 0, 0.18);
}

.mail-view-card:hover {
    border-color: var(--primary);

    box-shadow:
        0 18px 46px
        rgba(0, 0, 0, 0.22),
        0 0 18px
        var(--primary-glow);
}

.mail-view-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px;

    border-bottom: 1px solid var(--border);
}

.mail-view-avatar {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #fff;
    font-weight: 800;
}

.mail-view-sender {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.mail-view-sender strong {
    color: var(--text-main);
    font-size: 15px;
}

.mail-view-sender span {
    color: var(--text-muted);
    font-size: 12px;
}

.mail-view-date {
    color: var(--text-muted);
    font-size: 12px;
}

.mail-view-meta {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 14px 20px;

    border-bottom: 1px solid var(--border);

    background: var(--bg-card-hover);

    color: var(--text-muted);

    font-size: 12px;
}

.mail-view-meta strong {
    color: var(--text-main);
}

.mail-view-body {
    padding: 20px;

    min-height: 400px;
}

.mail-html-frame {
    width: 100%;
    min-height: 600px;

    border: 0;
    border-radius: 12px;

    background: #fff;
}

.mail-text-body {
    white-space: pre-wrap;
    word-wrap: break-word;

    color: var(--text-main);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 700px) {

    .mail-view-page {
        padding: 16px;
    }

    .mail-view-header {
        align-items: flex-start;
    }

    .mail-view-date {
        font-size: 10px;
    }

}

/* =========================================================
   MAILBOX PAGE
   ========================================================= */

.mailbox-page {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));
    padding: 28px;
    background:
        radial-gradient(circle at top right, var(--primary-glow), transparent 28%),
        var(--bg-main);
}

.mailbox-container {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}

.mailbox-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.mailbox-page-heading h1 {
    color: var(--text-main);
    font-size: 34px;
    margin-bottom: 6px;
}

.mailbox-page-heading p {
    color: var(--text-muted);
    font-size: 14px;
}

.mailbox-top-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mailbox-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.mailbox-summary-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.mailbox-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow:
        0 14px 36px rgba(0,0,0,0.18),
        0 0 18px var(--primary-glow);
}

.mailbox-summary-label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.mailbox-summary-value {
    display: block;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
}

.mailbox-summary-host {
    font-size: 16px;
    word-break: break-word;
}

.mailbox-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0,0,0,0.18);
}

.mailbox-card:hover {
    border-color: var(--primary);
    box-shadow:
        0 18px 46px rgba(0,0,0,0.22),
        0 0 18px var(--primary-glow);
}

.mailbox-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-hover);
}

.mailbox-card-header h2 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 4px;
}

.mailbox-card-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.mailbox-header-badge {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary-soft);
    font-size: 12px;
    font-weight: 700;
}

.mailbox-empty {
    padding: 42px 20px;
}

.mail-list-table {
    width: 100%;
}

.mail-list-table-head {
    display: grid;
    grid-template-columns: 90px 320px minmax(0, 1fr) 170px 110px;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--primary) 4%, var(--bg-card-hover));
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mail-list-table-body {
    display: flex;
    flex-direction: column;
}

.mail-list-row {
    display: grid;
    grid-template-columns: 90px 320px minmax(0, 1fr) 170px 110px;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    background: transparent;
    transition:
        background var(--transition),
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.mail-list-row:last-child {
    border-bottom: 0;
}

.mail-list-row:hover {
    background: color-mix(in srgb, var(--primary) 5%, transparent);
    transform: translateY(-1px);
    box-shadow: inset 3px 0 0 var(--primary);
}

.mail-list-row-unread {
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.mail-list-col {
    min-width: 0;
}

.mail-list-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-read-mark {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.mail-unread-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.mail-list-from {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mail-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.mail-from-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mail-from-text strong,
.mail-list-subject strong {
    color: var(--text-main);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mail-from-text span {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mail-list-date,
.mail-list-size {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .mailbox-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mail-list-table-head,
    .mail-list-row {
        grid-template-columns: 70px 260px minmax(0, 1fr) 150px 90px;
    }
}

@media (max-width: 900px) {
    .mailbox-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mailbox-top-actions {
        width: 100%;
    }

    .mailbox-top-actions .btn {
        width: 100%;
    }

    .mailbox-summary-grid {
        grid-template-columns: 1fr;
    }

    .mail-list-table-head {
        display: none;
    }

    .mail-list-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: flex-start;
    }

    .mail-list-status {
        order: 1;
    }

    .mail-list-from {
        order: 2;
    }

    .mail-list-subject {
        order: 3;
    }

    .mail-list-date {
        order: 4;
    }

    .mail-list-size {
        order: 5;
    }
}

@media (max-width: 700px) {
    .mailbox-page {
        padding: 16px;
    }

    .mailbox-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   PREMIUM MAIL VIEW
   ========================================================= */

.mail-view-container {
    max-width: 1380px;
}

.mail-view-page .profile-page-heading {
    margin-bottom: 22px;
}

.mail-view-page .profile-page-heading h1 {
    font-size: 30px;
    letter-spacing: -0.4px;
}

.mail-view-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-reply-button {
    min-width: 120px;
}

.mail-view-card {
    border-radius: 20px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.25);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.mail-view-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.30),
        0 0 22px var(--primary-glow);
}

/* =========================================================
   GÖNDEREN ÜST ALANI
   ========================================================= */

.mail-view-header {
    padding: 20px 22px;

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--primary) 7%,
                var(--bg-card)
            ),
            var(--bg-card)
        );
}

.mail-view-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    font-size: 17px;

    box-shadow:
        0 8px 22px
        var(--primary-glow);
}

.mail-view-sender strong {
    font-size: 15px;
}

.mail-view-sender span {
    margin-top: 2px;
    font-size: 12px;
}

.mail-view-date {
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--bg-card-hover);
}

/* =========================================================
   MAIL META
   ========================================================= */

.mail-view-meta {
    gap: 9px;

    padding: 15px 22px;

    background:
        color-mix(
            in srgb,
            var(--primary) 4%,
            var(--bg-card-hover)
        );
}

.mail-view-meta > div {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

/* =========================================================
   EKLER
   ========================================================= */

.mail-attachment-meta {
    flex-direction: column;
}

.mail-attachment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 6px;
}

.mail-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 36px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--bg-card);

    color: var(--text-main);

    font-size: 12px;
    font-weight: 600;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.mail-attachment-link:hover {
    transform: translateY(-2px);

    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 8%,
            var(--bg-card)
        );

    box-shadow:
        0 7px 18px
        var(--primary-glow);
}

/* =========================================================
   MAIL İÇERİĞİ
   ========================================================= */

.mail-view-body {
    padding: 18px;

    background:
        color-mix(
            in srgb,
            var(--bg-main) 55%,
            var(--bg-card)
        );
}

.mail-html-frame {
    display: block;

    width: 100%;
    height: 250px;
    min-height: 250px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--primary) 20%,
            transparent
        );

    border-radius: 14px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.14);
}

/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 700px) {

    .mail-view-actions {
        width: 100%;
        flex-direction: column;
    }

    .mail-view-actions .btn {
        width: 100%;
    }

    .mail-view-header {
        flex-wrap: wrap;
    }

    .mail-view-date {
        width: 100%;
        margin-top: 6px;
    }

}

/* =========================================================
   MAIL BODY - YENİ
   ========================================================= */

.mail-html-frame {
    display: block;

    width: 100%;
    height: 120px;
    min-height: 120px;

    border: 0;
    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;
}

.mail-plain-content {
    width: 100%;

    padding: 18px;

    border-radius: 12px;

    background: #ffffff;
    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    white-space: normal;
    overflow-wrap: anywhere;

    box-sizing: border-box;
}



/* =========================================================
   MAIL BODY - IFRAME YOK
   ========================================================= */

.mail-html-content {
    display: block;

    width: 100%;
    height: auto;

    padding: 18px;

    border-radius: 12px;

    background: #ffffff;
    color: #111111;

    box-sizing: border-box;

    overflow: visible;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    line-height: 1.55;
}

/* Mail içindeki resimler */
.mail-html-content img {
    max-width: 100% !important;
    height: auto !important;

    display: block;
}

/* Tablolar */
.mail-html-content table {
    max-width: 100% !important;
}

/* Uzun içerikler asla kesilmesin */
.mail-html-content,
.mail-html-content div,
.mail-html-content p,
.mail-html-content span,
.mail-html-content table,
.mail-html-content tbody,
.mail-html-content tr,
.mail-html-content td,
.mail-html-content pre {
    max-height: none !important;
    overflow: visible !important;
}

/* Uzun yazılar ekranı bozmasın */
.mail-html-content p,
.mail-html-content div,
.mail-html-content span,
.mail-html-content td,
.mail-html-content pre {
    overflow-wrap: anywhere;
}

/* Plain text mail */
.mail-plain-content {
    width: 100%;
    height: auto;

    padding: 18px;

    border-radius: 12px;

    background: #ffffff;
    color: #111111;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    overflow: visible;
}

/* =========================================================
   MAIL REPLY
   ========================================================= */

.mail-reply-page {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));

    padding: 28px;

    background:
        radial-gradient(
            circle at top right,
            var(--primary-glow),
            transparent 28%
        ),
        var(--bg-main);
}

.mail-reply-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.mail-reply-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--bg-card);

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.22);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.mail-reply-card:hover {
    border-color: var(--primary);

    box-shadow:
        0 22px 65px
        rgba(0, 0, 0, 0.28),
        0 0 20px
        var(--primary-glow);
}

/* =========================================================
   ALICI
   ========================================================= */

.mail-reply-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 22px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--primary) 8%,
                var(--bg-card)
            ),
            var(--bg-card)
        );
}

.mail-reply-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-soft)
        );

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        0 8px 22px
        var(--primary-glow);
}

.mail-reply-recipient {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.mail-reply-recipient > span {
    color: var(--text-muted);
    font-size: 11px;
}

.mail-reply-recipient strong {
    color: var(--text-main);
    font-size: 15px;
}

.mail-reply-recipient small {
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
   META
   ========================================================= */

.mail-reply-meta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: var(--border);

    border-bottom: 1px solid var(--border);
}

.mail-reply-meta > div {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 16px 20px;

    background: var(--bg-card-hover);
}

.mail-reply-meta span {
    color: var(--text-muted);
    font-size: 11px;
}

.mail-reply-meta strong {
    color: var(--text-main);
    font-size: 13px;
}

/* =========================================================
   FORM
   ========================================================= */

.mail-reply-form {
    padding: 22px;
}

.mail-reply-form .form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.mail-reply-form label {
    color: var(--text-main);

    font-size: 13px;
    font-weight: 700;
}

.mail-reply-textarea {
    width: 100%;
    min-height: 330px;

    resize: vertical;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--bg-input);
    color: var(--text-main);

    line-height: 1.6;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.mail-reply-textarea:hover {
    border-color: var(--primary);
}

.mail-reply-textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        var(--primary-glow);
}

/* =========================================================
   ALT BAR
   ========================================================= */

.mail-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.mail-reply-footer > span {
    color: var(--text-muted);

    font-size: 11px;
}

.mail-reply-send {
    min-width: 180px;
    min-height: 46px;
}

.mail-reply-send:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px
        var(--primary-glow);
}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    .mail-reply-page {
        padding: 16px;
    }

    .mail-reply-meta {
        grid-template-columns: 1fr;
    }

    .mail-reply-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .mail-reply-send {
        width: 100%;
    }
}

/* =========================================================
   MAIL RICH EDITOR
   ========================================================= */

.mail-reply-editor {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.mail-editor-toolbar {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg-card-hover);
}

.mail-editor-btn {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--bg-card);
    color: var(--text-main);

    cursor: pointer;

    font-size: 15px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.mail-editor-btn:hover {
    transform: translateY(-2px);

    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 8%,
            var(--bg-card)
        );

    box-shadow:
        0 7px 18px
        var(--primary-glow);
}

.mail-file-button {
    cursor: pointer;
}

.mail-reply-rich-editor {
    min-height: 320px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--bg-input);
    color: var(--text-main);

    outline: none;

    line-height: 1.6;

    overflow-wrap: anywhere;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.mail-reply-rich-editor:hover {
    border-color: var(--primary);
}

.mail-reply-rich-editor:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        var(--primary-glow);
}

.mail-reply-rich-editor:empty::before {
    content: attr(data-placeholder);

    color: var(--text-muted);

    pointer-events: none;
}

.mail-editor-inline-image {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 12px 0;

    border-radius: 10px;
}

.mail-image-preview-area {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}