:root {
    --bs-body-bg: #0F0D13;
    --bs-body-color: #E6E1E5;
    --primary-dark: #0F0D13;
    --secondary-dark: #2A2930;
    --accent-color: #BB86FC;
    --accent-light: #E8D9FF;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F0D13 0%, #1a1720 100%);
    color: #E6E1E5;
    min-height: 100vh;
}

#layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0F0D13 0%, #151219 100%);
    color: #E6E1E5;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar a {
    color: #CAC7D0;
    text-decoration: none;
    padding: 14px 25px;
    margin: 5px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.sidebar a:hover {
    background: rgba(208, 188, 255, 0.2);
    color: #E8D9FF;
    padding-left: 30px;
}

.nav-group {
    margin: 5px 10px;
}

.nav-group summary.nav-group-title {
    list-style: none;
    cursor: pointer;
    color: #CAC7D0;
    padding: 14px 25px 14px 25px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.nav-group summary.nav-group-title::after {
    content: '▸';
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-group[open] summary.nav-group-title::after {
    transform: rotate(90deg);
}

.nav-group summary.nav-group-title::-webkit-details-marker {
    display: none;
}

.nav-group summary.nav-group-title:hover {
    background: rgba(208, 188, 255, 0.2);
    color: #E8D9FF;
}

.nav-group-items {
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 4px;
}

.nav-group-items a {
    font-size: 0.93em;
    padding: 10px 20px;
    margin: 2px 4px;
}

.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.login-box {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    display: flex;
    flex-direction: column;
    background: rgba(42, 41, 48, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(208, 188, 255, 0.2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #E8D9FF;
    font-size: 28px;
}

.login-box input {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(79, 75, 88, 0.6);
    border: 1px solid rgba(208, 188, 255, 0.3);
    border-radius: 12px;
    color: #E6E1E5;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #E8D9FF;
    background: rgba(79, 75, 88, 0.9);
    box-shadow: 0 0 10px rgba(232, 222, 248, 0.3);
}

.login-box input::placeholder {
    color: #B0A9C1;
}

.login-box button {
    padding: 12px;
    background: linear-gradient(135deg, #BB86FC 0%, #E8D9FF 100%);
    border: none;
    border-radius: 12px;
    color: #0F0D13;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 188, 255, 0.4);
}

.crud-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 25px;
    background: rgba(42, 41, 48, 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(208, 188, 255, 0.1);
}

.crud-table tr {
    
}
.crud-table th {
    color: #E8D9FF;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(208, 188, 255, 0.2);
}

.crud-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #CAC7D0;
    vertical-align: middle;
}

.crud-table td img {
    display: block;
    max-width: 100%;
    height: auto;
}

.crud-table tr:last-child td {
    border-bottom: none;
}

.crud-table tr:hover {
    background: rgba(208, 188, 255, 0.1);
}

.crud-table td[contenteditable] {
    color: #E8D9FF;
    cursor: text;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.crud-table td[contenteditable]:focus {
    background: rgba(232, 222, 248, 0.25);
    outline: none;
    box-shadow: 0 0 8px rgba(232, 222, 248, 0.3);
}

.add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    background: rgba(42, 41, 48, 0.5);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(208, 188, 255, 0.1);
}

.add-form input,
.add-form select {
    padding: 12px 15px;
    background: rgba(79, 75, 88, 0.6);
    border: 1px solid rgba(208, 188, 255, 0.3);
    border-radius: 12px;
    color: #E6E1E5;
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-form input:focus,
.add-form select:focus {
    outline: none;
    border-color: #E8D9FF;
    background: rgba(79, 75, 88, 0.9);
    box-shadow: 0 0 10px rgba(232, 222, 248, 0.3);
}

.add-form input::placeholder {
    color: #B0A9C1;
}

.add-form button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #BB86FC 0%, #E8D9FF 100%);
    border: none;
    border-radius: 12px;
    color: #0F0D13;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 188, 255, 0.4);
}

.add-form button:active {
    transform: translateY(0);
}

button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #BB86FC 0%, #E8D9FF 100%);
    border: none;
    border-radius: 12px;
    color: #0F0D13;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 188, 255, 0.4);
}

button:active {
    transform: translateY(0);
}

h1, h2, h3 {
    color: #E8D9FF;
    font-weight: 700;
}

h1 {
    font-size: 32px;
    margin-bottom: 25px;
}

h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

label {
    color: #CAC7D0;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E8DEF8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

option {
    background: #2A2930;
    color: #E6E1E5;
}
