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

body {
    font-family: system-ui, sans-serif;
    background: #ecfeff;
    color: #111827;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #1e293b;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: "Poppins", "Montserrat", "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    /* biraz ince */
    font-size: 35px;
    letter-spacing: 0.06em;

    background: linear-gradient(90deg,
            #FF4FB6 0%,
            #9A5BFF 45%,
            #4DA7FF 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Chrome/Safari */
    color: transparent;
    /* diğerleri */
}

.logo {
    margin-bottom: 32px;
    /* logo biraz nefes alsın */
}

.menu .item {
    margin-bottom: 10px;
    /* menüler de sıkışmasın */
}



.logo span {
    color: #06b6d4;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 10px;
}

.menu a {
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    color: #e5e7eb;
    border-radius: 8px;
}

.menu a.active,
.menu a:hover {
    background: #111827;
}

.sidebar-footer {
    margin-top: auto;
    opacity: 0.6;
    font-size: 12px;
}

/* Ana alan */
.main {
    flex: 1;
    padding: 26px;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-sub {
    font-size: 13px;
    color: #64748b;
}

/* Grid alan */
.content-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 20px;
}

/* Kartlar */
.card {
    background: #f9fafb;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

/* Takvim */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nav-btn {
    background: #0f172a;
    color: #e5e7eb;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.nav-btn:hover {
    background: #06b6d4;
}

.month-label {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.month-sub {
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.calendar-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-head {
    margin-bottom: 4px;
}

.day-name {
    font-size: 11px;
    color: #475569;
    text-align: center;
    font-weight: 600;
}

.day {
    background: #e0f2fe;
    border-radius: 12px;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    min-height: 52px;
    cursor: pointer;
    position: relative;
}

.day.empty {
    background: transparent;
    cursor: default;
}

.day:hover:not(.empty) {
    background: #bae6fd;
}

.day.today {
    outline: 2px solid #06b6d4;
}

/* Platform renkleri */
.day.zoom {
    border: 2px solid #3b82f6;
}

.day.teams {
    border: 2px solid #6366f1;
}

.day.meet {
    border: 2px solid #22c55e;
}

/* Event badge */
.badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 10px;
}

/* Sağ panel */
.side-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.side-sub {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
}

.events-list {
    list-style: none;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e0f2fe;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.event-date {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #0f172a;
    color: white;
    text-align: center;
    border-radius: 12px;
    padding: 8px 6px;
    line-height: 1;
}

.event-date strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.event-date span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-content {
    min-width: 0;
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #334155;
}

.event-day {
    font-size: 14px;
    font-weight: bold;
}

.event-month {
    font-size: 10px;
}

.event-info {
    margin-left: 10px;
}

.event-name {
    font-size: 13px;
    font-weight: 600;
}

.event-meta {
    font-size: 10px;
    color: #475569;
}

/* ⭐ Modal (popup) ⭐ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    background: #f9fafb;
    padding: 20px 22px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.5);
    width: 280px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
    color: #374151;
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 13px;
}

.modal-field input:focus,
.modal-field select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.btn-primary,
.btn-secondary {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

.btn-primary {
    background: #06b6d4;
    color: #ecfeff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

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


/* ================= MODERN SIDEBAR MENU ================= */

.menu {
    list-style: none;
    margin-top: 8px;
}

/* MENU LINK */
.menu a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #cfd6ff;
    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;
}

/* HOVER */
.menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

/* ACTIVE */
.menu a.active {
    background: linear-gradient(90deg,
            rgba(154, 91, 255, 0.22),
            rgba(77, 167, 255, 0.08));
    box-shadow: 0 0 16px rgba(154, 91, 255, 0.25);
    color: #ffffff;
}

/* ACTIVE GRADIENT LINE */
.menu a.active::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 6px;
    background: linear-gradient(180deg,
            #FF4FB6,
            #9A5BFF,
            #4DA7FF);
}

/* ================= CALENDAR IMPROVEMENTS ================= */

/* EVENTS SECTIONS */
.events-section {
    margin-bottom: 20px;
}

.events-section:last-child {
    margin-bottom: 0;
}

.past-section .side-title {
    color: #64748b;
}

/* HAS MEETING DAY */
.day.has-meeting {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

/* EVENT ITEM PAST */
.event-item.past {
    background: #f1f5f9;
    opacity: 0.8;
}

.event-item.past .event-date {
    background: #64748b;
}

.event-item.past .event-name {
    color: #64748b;
}

/* EMPTY STATE */
.event-empty {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    padding: 12px;
}

/* SIDE CARD SCROLLABLE */
.side-card {
    max-height: 500px;
    overflow-y: auto;
}

/* SCROLLBAR STYLING */
.side-card::-webkit-scrollbar {
    width: 6px;
}

.side-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.side-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.side-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== ACTIVE MENU HARD OVERRIDE ===== */
.sidebar .menu a.active,
.sidebar .menu a.active:hover,
.menu a.active,
.menu a.active:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.9) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.sidebar .menu a.active::before,
.menu a.active::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.sidebar .menu li:has(> a.active),
.menu li:has(> a.active) {
  background: transparent !important;
  box-shadow: none !important;
}

/* SIDEBAR_STICKY_V30 */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 20;
}

.main {
  min-width: 0;
}

.sidebar-footer {
  line-height: 1.45;
}


/* V31 fixed sidebar */
@media (min-width: 1101px) {
  .layout {
    align-items: flex-start;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}


/* V34 sidebar palette */
.sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.06);
}
.logo {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  margin-bottom: 26px;
}
.menu a {
  color: #334155;
  font-weight: 600;
}
.menu a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.menu a.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.08), inset 0 0 0 1px rgba(203, 213, 225, 0.9);
}
.sidebar-footer {
  color: #475569;
  opacity: 1;
}


/* V36 consistent sidebar spacing */
.sidebar .menu,
.menu {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.sidebar .menu li,
.menu li,
.menu .item {
  margin-bottom: 0 !important;
}


/* V36 meeting density colors */
.day.has-meeting.density-1 { box-shadow: inset 0 -3px 0 rgba(37,99,235,.28); }
.day.has-meeting.density-2 { background: #dbeafe; box-shadow: inset 0 -3px 0 rgba(37,99,235,.38); }
.day.has-meeting.density-3 { background: #bfdbfe; box-shadow: inset 0 -3px 0 rgba(37,99,235,.5); }
.day.has-meeting.density-4 { background: #93c5fd; color:#0f172a; box-shadow: inset 0 -3px 0 rgba(30,64,175,.6); }
.day.has-meeting.density-5 { background: #60a5fa; color:#0f172a; box-shadow: inset 0 -3px 0 rgba(30,64,175,.75); }
.day.has-meeting.density-4 .badge,
.day.has-meeting.density-5 .badge { background:#0f172a; color:#fff; }


/* V36 final sidebar color override */
body .sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
  color: #1e293b !important;
}
body .sidebar .menu a {
  color: #334155 !important;
}
body .sidebar .menu a:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
}
body .sidebar .menu a.active {
  background: #ffffff !important;
  color: #1e293b !important;
}
