@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #5c4033;
    --secondary-color: #c49b63;
    --background-color: #2b1d1a;
    --text-color: #f5f5dc;
    --card-background: #3b2a22;
    --shadow-color: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png');
    background-repeat: repeat;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--primary-color) url('https://www.transparenttextures.com/patterns/dark-leather.png');
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05), 5px 0 15px var(--shadow-color);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

#logo {
    max-width: 80%;
    height: auto;
}

.sidebar ul {
    list-style: none;
    flex-grow: 1;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    background: rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px var(--shadow-color);
    transition: background-color 0.3s ease, padding-left 0.3s ease, box-shadow 0.3s ease;
}

.sidebar ul li a svg {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
    background-color: var(--secondary-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 6px var(--shadow-color);
    padding-left: 1.5rem;
}

.sidebar ul li.exit {
    margin-top: auto;
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.5) sepia(0.3);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    background-color: rgba(43, 29, 26, 0.85);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
}

header {
    background: var(--card-background) url('https://www.transparenttextures.com/patterns/leather.png');
    padding: 1.5rem 2rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 10;
}

main {
    flex-grow: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-header h3, .sidebar ul li a span {
        display: none;
    }
    .sidebar ul li a {
        text-align: center;
        padding: 1rem 0;
    }
    .sidebar ul li a.active, .sidebar ul li a:hover {
        padding-left: 0;
    }
}

.card {
    background: var(--card-background) url('https://www.transparenttextures.com/patterns/leather.png');
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #4e342e;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 8px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0));
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 15px 30px var(--shadow-color);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.card p {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--secondary-color);
}

.card p span {
    font-weight: 700;
}
