:root {
    --primary-color: #d32f2f; /* Rojo */
    --secondary-color: #212121; /* Negro */
    --accent-color: #ffb300; /* Dorado */
    --bg-color: #f4f6f9;
    --text-color: #333;
    --sidebar-width: 250px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Content Wrapper */
.content-wrapper {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Topbar */
.topbar {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: bold;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* Summary Cards */
.summary-card {
    border-left: 4px solid var(--primary-color);
}

.summary-card.accent {
    border-left: 4px solid var(--accent-color);
}

.summary-card.dark {
    border-left: 4px solid var(--secondary-color);
}

.summary-icon {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.1);
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    font-weight: bold;
}

.btn-accent:hover {
    background-color: #ff8f00;
    color: white;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(211, 47, 47, 0.05);
}

/* Login Page */
.login-bg {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
    border-top: 5px solid var(--primary-color);
}

.login-card h2 {
    color: var(--secondary-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.login-card .logo {
    text-align: center;
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Birthday Image Canvas */
#birthdayCanvasContainer {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        margin-left: 0;
    }
    .content-wrapper {
        margin-left: 0;
    }
}
