/* --- Global Styles --- */
* {
    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; }

.search {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.search input { border: none; padding: 8px; outline: none; width: 200px; }
.search button {
    background: #0f3d3e;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.profile-img { display: flex; align-items: center; gap: 12px; }
.profile-img img {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1a5d1a;
}
.sidebar a:hover, .sidebar li.active a { background: rgba(255,255,255,0.1); color: white; }

/* --- Header --- */
.header-content {
    grid-column: 2; display: flex; justify-content: space-between;
    align-items: center; padding: 0 30px;
    border-bottom: 1px solid #eee; background: white;
}

.header-title { font-size: 20px; color: #0f3d3e; }
.profile-img { display: flex; align-items: center; gap: 10px; }
.profile-img img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1c7c7d; }

/* --- 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; }

/* Training Card */
.training-card {
    background: white; padding: 25px; border-radius: 15px;
    margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.training-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: #555; }
.input-group input, .input-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none;
}
.full-width { grid-column: 1 / 3; }

.btn-train {
    grid-column: 1 / 3; background: #1c7c7d; color: white;
    border: none; padding: 15px; border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-train:hover { background: #0f3d3e; transform: translateY(-2px); }

/* Table Styles */
.table-wrapper { background: white; padding: 20px; border-radius: 15px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; background: #f8f9fa; color: #666; font-size: 13px; }
td { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; }

.rate-badge {
    background: #e8f5e9; color: #2e7d32; padding: 4px 10px;
    border-radius: 20px; font-weight: 700; font-size: 12px;
}

.btn-edit { color: #1c7c7d; background: none; border: none; cursor: pointer; margin-right: 10px; }
.btn-delete { color: #d32f2f; background: none; border: none; cursor: pointer; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #1c7c7d; border-radius: 10px; }

