/* Sidebar Styles */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: #2c3e50;
    border-bottom: 1px solid #4a5568;
}

.sidebar-header h4 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.sidebar-header h4 i {
    color: #3498db;
    margin-right: 10px;
}

.sidebar .components {
    padding: 20px 0;
}

.sidebar .components li {
    margin: 0;
}

.sidebar .components li a {
    padding: 15px 20px;
    font-size: 16px;
    display: block;
    color: #b8c7ce;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar .components li a:hover {
    color: #fff;
    background: #2c3e50;
    border-left-color: #3498db;
}

.sidebar .components li.active a {
    color: #fff;
    background: #2c3e50;
    border-left-color: #3498db;
}

.sidebar .components li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dropdown styles */
.sidebar .components .collapse {
    background: #2c3e50;
}

.sidebar .components .collapse li a {
    padding: 10px 20px 10px 50px;
    font-size: 14px;
}

/* Main content area */
#content {
    width: calc(100% - 250px);
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
}

#content.active {
    width: 100%;
    margin-left: 0;
}

/* Top navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    border-bottom: 1px solid #dee2e6;
}

#sidebarCollapse {
    background: #3498db;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

#sidebarCollapse:hover {
    background: #2980b9;
}

/* Login page styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-box {
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo h3 {
    color: white;
    font-weight: 600;
    margin: 15px 0 5px 0;
}

.login-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.card-body {
    padding: 40px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.form-control {
    border-color: #ced4da;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Dashboard styles */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e3e6f0;
}

.timeline-content {
    background: #f8f9fc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e3e6f0;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 5px;
}

.timeline-text {
    color: #858796;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #content.active {
        margin-left: 0;
    }
}

/* Animation for sidebar toggle */
.sidebar, #content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #5a6268;
}
