:root {
  --bg-color: #f5f7fa;
  --text-color: #212529;
  --card-bg: #ffffff;
  --sidebar-bg: #343a40;
  --sidebar-text: #b3b3b3;
  --sidebar-active: #0d6efd;
  --navbar-bg: #ffffff;
  --border-color: #dee2e6;
}

[data-theme="dark"] {
  --bg-color: #212529;
  --text-color: #f8f9fa;
  --card-bg: #343a40;
  --sidebar-bg: #212529;
  --sidebar-text: #adb5bd;
  --sidebar-active: #0d6efd;
  --navbar-bg: #343a40;
  --border-color: #495057;
}

/* Add validation styles */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

.was-validated .form-control:invalid,
.was-validated .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--sidebar-text);
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: var(--sidebar-active);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.logo-container {
    color: white;
    padding: 1rem;
}

main {
    padding-top: 1.5rem;
    background-color: var(--bg-color);
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s;
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container i {
    font-size: 24px;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.dark-mode-toggle {
    position: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2em;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.alert-success {
    animation: fadeIn 0.5s;
    transition: opacity 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn:disabled {
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
}