:root {
    --tulip-primary: #6D3C8F;
    --tulip-secondary: #EF5D74;
    --tulip-gradient: linear-gradient(135deg, #6D3C8F, #EF5D74);
    --tulip-bg: #FCEEF2;
    --tulip-light: #f8f4f8;
    --tulip-dark: #333;
    --tulip-white: #fff;
    --tulip-gray: #666;
    --tulip-border: #e0d6e0;
    --tulip-success: #28a745;
    --tulip-warning: #ffc107;
    --tulip-danger: #dc3545;
    --sidebar-width: 250px;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--tulip-bg);
    color: var(--tulip-dark);
    min-height: 100vh;
}

.tulip-btn {
    background: var(--tulip-gradient);
    color: var(--tulip-white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.tulip-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--tulip-white);
    text-decoration: none;
}

.tulip-btn-outline {
    background: transparent;
    border: 2px solid var(--tulip-primary);
    color: var(--tulip-primary);
}

.tulip-btn-outline:hover {
    background: var(--tulip-gradient);
    color: var(--tulip-white);
    border-color: transparent;
}

.tulip-btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.tulip-card {
    background: var(--tulip-white);
    border-radius: 12px;
    border: 1px solid var(--tulip-border);
    box-shadow: 0 2px 8px rgba(109, 60, 143, 0.08);
    transition: all 0.3s ease;
}

.tulip-card:hover {
    box-shadow: 0 4px 16px rgba(109, 60, 143, 0.12);
}

.tulip-header {
    background: var(--tulip-gradient);
    color: var(--tulip-white);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tulip-header .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tulip-white);
    text-decoration: none;
}

.tulip-header .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tulip-white);
}

.tulip-header .user-menu .dropdown-toggle {
    color: var(--tulip-white);
    cursor: pointer;
    background: none;
    border: none;
}

.tulip-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--tulip-white);
    border-right: 1px solid var(--tulip-border);
    overflow-y: auto;
    z-index: 1020;
    padding-top: 10px;
}

.tulip-sidebar .nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--tulip-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tulip-sidebar .nav-item:hover,
.tulip-sidebar .nav-item.active {
    background: var(--tulip-bg);
    color: var(--tulip-primary);
    border-left-color: var(--tulip-primary);
    text-decoration: none;
}

.tulip-sidebar .nav-item i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
    color: var(--tulip-primary);
}

.tulip-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
}

@media (max-width: 768px) {
    .tulip-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    .tulip-main {
        margin-left: 0;
    }
}

.tulip-stat {
    text-align: center;
    padding: 20px;
}

.tulip-stat .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--tulip-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--tulip-primary);
}

.tulip-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tulip-primary);
}

.tulip-stat .stat-label {
    font-size: 0.875rem;
    color: var(--tulip-gray);
}

.tulip-table {
    width: 100%;
    border-collapse: collapse;
}

.tulip-table th {
    background: var(--tulip-bg);
    color: var(--tulip-primary);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--tulip-border);
}

.tulip-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tulip-border);
}

.tulip-table tr:hover td {
    background: var(--tulip-bg);
}

.tulip-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tulip-badge-primary {
    background: var(--tulip-primary);
    color: var(--tulip-white);
}

.tulip-badge-secondary {
    background: var(--tulip-secondary);
    color: var(--tulip-white);
}

.tulip-badge-success {
    background: var(--tulip-success);
    color: var(--tulip-white);
}

.tulip-badge-warning {
    background: var(--tulip-warning);
    color: var(--tulip-dark);
}

.tulip-badge-danger {
    background: var(--tulip-danger);
    color: var(--tulip-white);
}

.tulip-badge-dark {
    background: var(--tulip-dark);
    color: var(--tulip-white);
}

.tulip-form-control {
    border: 2px solid var(--tulip-border);
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.tulip-form-control:focus {
    border-color: var(--tulip-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 60, 143, 0.1);
}

.tulip-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.tulip-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tulip-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tulip-modal .modal-header {
    background: var(--tulip-gradient);
    color: var(--tulip-white);
    border-radius: 12px 12px 0 0;
}

.tulip-modal .modal-header .close {
    color: var(--tulip-white);
}

.tulip-modal .modal-content {
    border-radius: 12px;
    border: none;
}

.tulip-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tulip-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--tulip-border);
    border-top-color: var(--tulip-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tulip-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tulip-gray);
}

.tulip-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--tulip-border);
}

.tulip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tulip-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tulip-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.tulip-timeline {
    position: relative;
    padding-left: 30px;
}

.tulip-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tulip-border);
}

.tulip-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--tulip-white);
    border-radius: 8px;
    border: 1px solid var(--tulip-border);
}

.tulip-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tulip-primary);
    border: 2px solid var(--tulip-white);
}

.tulip-timeline-item .time {
    font-size: 0.8rem;
    color: var(--tulip-gray);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tulip-gradient);
    padding: 20px;
}

.login-card {
    background: var(--tulip-white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .login-logo img {
    max-width: 120px;
    margin-bottom: 16px;
}

.login-card .login-logo h2 {
    color: var(--tulip-primary);
    font-weight: 700;
    margin: 0;
}

.login-card .login-logo p {
    color: var(--tulip-gray);
    font-size: 0.9rem;
}
