:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --info-color: #4299e1;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fc;
    color: #2d3748;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s;
    z-index: 999;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.sidebar-header p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav .nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: white;
}

.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.2);
    border-left-color: white;
    font-weight: 500;
}

/* Main Content */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 20px 30px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    background: white;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 25px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Quick Action Cards */
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.quick-action-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.quick-action-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #4a5568;
    border-bottom-width: 1px;
    padding: 15px;
    background: #f7fafc;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.75rem;
}

.bg-success {
    background: #48bb78 !important;
}

.bg-warning {
    background: #ed8936 !important;
}

.bg-danger {
    background: #f56565 !important;
}

.bg-info {
    background: #4299e1 !important;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 25px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 15px;
    width: 2px;
    height: calc(100% + 25px);
    background: #e2e8f0;
}

.timeline-content h6 {
    margin: 0 0 5px;
    font-weight: 600;
}

.timeline-content small {
    color: #718096;
    display: block;
    margin-bottom: 5px;
}

/* Info Box */
.info-box {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* Document Card */
.document-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.document-card i {
    font-size: 1.5rem;
    color: var(--danger-color);
}

.document-card span {
    flex: 1;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Login Page */
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h3 {
    color: #333;
    font-weight: 600;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
}

.btn-login:hover {
    opacity: 0.9;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .card {
    background: #2d3748;
}

body.dark-mode .card-header {
    border-bottom-color: #4a5568;
}

body.dark-mode .table {
    color: #e2e8f0;
}

body.dark-mode .table th {
    background: #2d3748;
    color: #a0aec0;
}

body.dark-mode .form-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .info-box {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .service-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .quick-action-card {
    background: #2d3748;
    border-color: #4a5568;
}