/* Custom styles for KodingData */

:root {
    --primary-color: #41873b;
    --primary-hover: #376831;
    --text-dark: #000000;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --primary-light: rgba(65, 135, 59, 0.1);
    --bg-dark: #212529;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Navbar styles */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: bold;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-hover) !important;
    transform: translateY(-1px);
}

.navbar .dropdown-item {
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    color: var(--primary-hover);
    background-color: var(--primary-light);
}

/* Card styles */
.card {
    background-color: var(--text-light);
    border: none;
    border-radius: 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(65, 135, 59, 0.2);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
    border-bottom: none;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 135, 59, 0.2);
}

/* Form styles */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(65, 135, 59, 0.15);
}

/* Footer styles */
footer {
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer h5, 
footer p,
footer a {
    color: var(--text-light) !important;
}

footer a {
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Course cards */
.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card .card-body {
    flex: 1;
}

.course-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Hero section */
.hero-section {
    background: var(--text-light);
    color: var(--text-dark);
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Social login */
.social-login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.social-login-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #dee2e6;
}

.social-login-divider span {
    background-color: var(--text-light);
    padding: 0 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Helper classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Course content accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Lesson list items */
.lesson-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.lesson-item:last-child {
    border-bottom: none;
}

/* Authentication pages styles */
.auth-card {
    max-width: 450px;
    margin: 2rem auto;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background: var(--primary-color);
    color: var(--text-light);
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
    border-bottom: none;
    padding: 1.5rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(65, 135, 59, 0.15);
}

/* Form styles */
.asteriskField {
    color: #dc3545;
    margin-left: 2px;
}

.help-block {
    color: var(--text-dark);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Navigation active state */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Dark background elements */
.bg-dark {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark a,
.bg-dark span {
    color: var(--text-light) !important;
}

/* Footer styles */
footer.bg-dark {
    background-color: var(--bg-dark);
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer.bg-dark h5, 
footer.bg-dark p {
    color: var(--text-light) !important;
}

footer.bg-dark a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

footer.bg-dark a:hover {
    color: var(--text-light);
    opacity: 1;
    text-decoration: underline;
}

/* Project filtering styles */
.project-item {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
}

/* Button styles */
.btn-outline-primary {
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-primary.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 135, 59, 0.2);
} 