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

body {
    font-family: sans-serif;
    background-color: #f5f6fa;
}

/* === TOPBAR === */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 64px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.topbar-left .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.topbar-left .menu-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* === LAYOUT === */
.container {
    display: flex;
    margin-top: 64px;
    transition: all 0.3s ease;
}

/* === SIDEBAR === */
.sidebar {
    width: 256px;
    padding-top: 10px;
    height: calc(100vh - 64px);
    transition: width 0.3s ease; /* Sadece width animasyonu daha temiz sonuç verir */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Menü içerikleri (icon + text) */
.menu-item {
    display: flex;
    align-items: center;
    height: 40px;
    width: 256px;
    padding-left: 20px; /* Bu değer ikonun soldaki yerini sabitler */
    margin-top: 8px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    white-space: nowrap;
    text-decoration: none;
    color: black;
}

.menu-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.menu-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease; /* Daha akıcı bir geçiş için opacity kullandım */
}

/* Sidebar kapalıyken */
.sidebar.collapsed {
    width: 64px;
}

.sidebar.collapsed .menu-item {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin: 8px 0 0 12px; /* soldan istediğin boşluk */
    padding: 0 0 0 8px;
    display: flex;          /* flex ile ikon hizalanacak */
    align-items: center;    /* dikey ortala */
}

.sidebar.collapsed .menu-item.active {
    background-color: #E8F0FE; /* sadece aktif olanın arka planı */
}

/* Sadece yazıyı gizliyoruz. `display: none` yerine `opacity: 0` daha akıcı bir animasyon sağlar. */
.sidebar.collapsed .menu-item span {
    opacity: 0;
    pointer-events: none; /* Gizliyken tıklanmasını da engeller */
}
/* Hover ve aktif durumları (Tüm durumlar için ortaktır) */
.menu-item:hover {
    background-color: #f0f3fa;
}

.menu-item.active {
    background-color: #E8F0FE;
}

.divider {
    height: 0.5px;
    border: none;
    margin-top: 8px;
    background-color: #D9D9D9;
    width: 100%;
}

/* === SAĞ PANEL === */
.side-panel {
    position: fixed;
    top: 0;
    right: -440px;
    width: 440px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    right: 0;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.side-panel-header h2 {
    margin: 0;
}

.side-panel-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.side-panel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    height: 100%;
    overflow-y: auto;
    justify-content: space-between;
}

/* Açıklama küçük P */
.feedback-info {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
}

/* Textarea */
.feedback-textbox {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    overflow-y: auto;
    font-size: 0.95rem;
}

.feedback-textbox:focus {
    outline: none; /* varsayılan mavi çerçeveyi kaldırır */
    border-color: #4a90e2; /* senin seçtiğin mavi tonu */
}

/* Upload alanı */
.feedback-upload {
    display: flex;
    align-items: center;      /* container içindeki label dikey ortalanır */
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    cursor: pointer;
    height: 40px;             /* sabit yükseklik */
}

.feedback-upload input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;       /* icon + yazı dikey ortalanır */
    gap: 6px;
    width: 100%;
    height: 100%;             /* label container yüksekliğini almalı */
    cursor: pointer;
    justify-content: center;
}

.upload-label .attachment-icon {
    width: 20px;
    height: 20px;
    display: block;           /* img block olmalı ki align-items düzgün çalışsın */
}

.upload-label span {
    line-height: 1;           /* span yüksekliği kontrolü */
    user-select: none;
}

/* Checkbox alanı */
.feedback-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* Gönder butonu */
.feedback-submit {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: none;
    background-color: #4a90e2;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
}


/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobile overlay */
.overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease; /* sadece opacity animasyonu */
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay.fullscreen {
    top: 0 !important;
    height: 100vh !important;
    z-index: 9998; /* panelin altına ama sidebar ve topbar üstüne */
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar {
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        position: fixed;
        left: 0;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 900;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
        /* Responsive'de genişlik 64px olmayacağı için width'i kaldırıyoruz */
        width: 256px;
    }

    .container {
        flex-direction: column;
    }

    .side-panel {
        width: 100%;
        height: 100%;
        top: 0;
    }
}