* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.8)), 
                url('../img/bg.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 95%;
    height: 95vh;
    border: 1px solid rgba(155, 155, 155, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 100px 1fr;
    gap: 0px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    grid-row: 1 / 3;
    background: linear-gradient(180deg, #0f3d3e, #1c7c7d);
    padding: 20px;
    overflow-y: auto;
}

.logo img { width: 120px; display: block; margin: 0 auto 30px; }

.line-divider {
    padding: 12px; color: white; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; border-left: 3px solid #46dbc7;
    margin-top: 15px; border-radius: 0 8px 8px 0; user-select: none;
}

.sidebar ul { list-style: none; display: none; padding-left: 10px; }
.sidebar ul.show { display: block; }

.sidebar a {
    color: rgba(255, 255, 255, 0.8); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    padding: 10px; transition: 0.3s; font-size: 14px;
}

.sidebar a:hover, li.active a { color: white; background: rgba(255,255,255,0.1); border-radius: 8px; }

/* --- Header Section --- */
.header-content {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto auto; 
    align-items: center; 
    gap: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-title { font-size: 18px; color: #0f3d3e; }
.welcome-text { color: #1a5d1a; font-size: 12px; font-weight: 600; }

.profile-img { display: flex; align-items: center; gap: 12px; }
.profile-img img {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1a5d1a;
}


/* --- Main Content --- */
.main-content { 
    padding: 30px; 
    overflow-y: auto; 
    background: #f8f9fa; 
}

.section-title { 
    margin-bottom: 20px; 
    font-size: 18px; 
    color: #333; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* --- Settings Card Styles --- */
.settings-card {
    background: white; 
    padding: 30px; 
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.settings-grid { 
    display: grid; 
    grid-template-columns: 150px 1fr; 
    gap: 30px; 
    align-items: center; 
}

.bot-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bot-current-avatar {
    width: 120px; 
    height: 120px; 
    background: #f0f7f7; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 3px solid #1c7c7d; 
    color: #1c7c7d; 
    font-size: 50px;
}

.input-group { 
    margin-bottom: 20px; 
}

.input-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 14px; 
    color: #444; 
}

.input-group input, .input-group textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #1c7c7d;
    box-shadow: 0 0 0 3px rgba(28, 124, 125, 0.1);
}

/* --- Toggle Switches --- */
.controls-list { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.control-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px; 
    background: #f9f9f9; 
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.control-item:hover {
    border-color: #eee;
    background: #fdfdfd;
}

.control-text strong { 
    display: block; 
    font-size: 15px; 
    color: #333; 
}

.control-text p { 
    font-size: 12px; 
    color: #777; 
}

.switch { 
    position: relative; 
    display: inline-block; 
    width: 50px; 
    height: 24px; 
}

.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.slider {
    position: absolute; 
    cursor: pointer; 
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 34px;
}

.slider:before {
    position: absolute; 
    content: ""; 
    height: 18px; 
    width: 18px; 
    left: 4px; 
    bottom: 3px;
    background-color: white; 
    transition: .4s; 
    border-radius: 50%;
}

input:checked + .slider { 
    background-color: #1c7c7d; 
}

input:checked + .slider:before { 
    transform: translateX(24px); 
}

/* --- Action Buttons --- */
.btn-train {
    background: #1c7c7d; 
    color: white; 
    border: none; 
    border-radius: 8px;
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    padding: 12px 25px;
}

.btn-train:hover { 
    background: #0f3d3e; 
    transform: translateY(-2px);
}

hr { 
    border: none; 
    border-top: 1px solid #eee; 
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #1c7c7d; border-radius: 10px; }