:root {
    --marine-primary: #003366;
    --marine-primary-dark: #002244;
    --marine-secondary: #00a8e8;
    --marine-accent: #ff6b35;
    --marine-light: #e6f4fa;
    --marine-gray: #f8f9fa;
    --marine-text: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--marine-text);
    line-height: 1.6;
    background: #f5f7fa;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--marine-primary) 0%, var(--marine-primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--marine-secondary) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--marine-primary) 0%, var(--marine-secondary) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "⛵";
    position: absolute;
    font-size: 300px;
    opacity: 0.1;
    bottom: -50px;
    right: -50px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero .btn-light {
    background: white;
    color: var(--marine-primary);
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: bold;
    transition: all 0.3s;
}

.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Course Cards */
.course-card {
    background: white;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    color: var(--marine-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.course-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--marine-accent);
}

.btn-marine {
    background: var(--marine-primary);
    color: white;
    border-radius: 25px;
    padding: 8px 25px;
    transition: all 0.3s;
    border: none;
}

.btn-marine:hover {
    background: var(--marine-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-marine {
    border: 2px solid var(--marine-primary);
    color: var(--marine-primary);
    border-radius: 25px;
    padding: 8px 25px;
    background: transparent;
}

.btn-outline-marine:hover {
    background: var(--marine-primary);
    color: white;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--marine-secondary);
}

/* Dashboard Cards */
.dashboard-stats {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.dashboard-stats:hover {
    transform: translateY(-5px);
}

.dashboard-stats i {
    font-size: 2.5rem;
    color: var(--marine-primary);
    margin-bottom: 15px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--marine-secondary);
    box-shadow: 0 0 0 0.2rem rgba(0,168,232,0.25);
}

/* Table */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table thead {
    background: var(--marine-primary);
    color: white;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .course-card .card-body {
        padding: 1rem;
    }
    
    .dashboard-stats {
        margin-bottom: 15px;
    }
}

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--marine-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step .circle {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.step.active .circle {
    background: var(--marine-primary);
    color: white;
}

.step.completed .circle {
    background: var(--marine-secondary);
    color: white;
}

.step .label {
    font-size: 0.85rem;
    color: #666;
}

.step.active .label {
    color: var(--marine-primary);
    font-weight: bold;
}

/* Admin Sidebar */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--marine-primary) 0%, var(--marine-primary-dark) 100%);
    color: white;
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .sidebar-nav {
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 25px;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        margin-left: -260px;
    }
    .admin-sidebar.show {
        margin-left: 0;
    }
    .admin-content {
        margin-left: 0;
    }
}