:root {
    --primary: #f7941d;
    --primary-dark: #e07b0c;
    --secondary: #3d4f5f;
    --secondary-dark: #2d3a45;
    --accent: #d44121;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(247, 148, 29, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar-nav a {
    color: var(--light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-nav a:hover {
    background: rgba(247, 148, 29, 0.1);
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 148, 29, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, rgba(247, 148, 29, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(247, 148, 29, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(212, 65, 33, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    max-width: 400px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features {
    padding: 100px 0;
    background: var(--dark);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(61, 79, 95, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(247, 148, 29, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(247, 148, 29, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.footer {
    background: var(--darker);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(247, 148, 29, 0.1);
}

.footer p {
    color: var(--gray);
}

.form-container {
    max-width: 450px;
    margin: 120px auto 50px;
    padding: 40px;
    background: rgba(61, 79, 95, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(247, 148, 29, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(247, 148, 29, 0.2);
    background: rgba(26, 26, 46, 0.8);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(247, 148, 29, 0.2);
}

.form-container .btn {
    width: 100%;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger);
    color: #f8d7da;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success);
    color: #d4edda;
}

.dashboard {
    padding-top: 100px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--light);
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.station-card {
    background: rgba(61, 79, 95, 0.3);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(247, 148, 29, 0.1);
    transition: all 0.3s;
}

.station-card:hover {
    border-color: rgba(247, 148, 29, 0.3);
    transform: translateY(-5px);
}

.station-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light);
}

.station-card .station-code {
    display: inline-block;
    background: rgba(247, 148, 29, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.station-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.station-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.add-station-card {
    background: rgba(61, 79, 95, 0.15);
    border: 2px dashed rgba(247, 148, 29, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.add-station-card:hover {
    background: rgba(61, 79, 95, 0.25);
    border-color: var(--primary);
}

.add-station-card .plus {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.add-station-card span {
    color: var(--gray);
    font-size: 1.1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(247, 148, 29, 0.2);
}

.modal h2 {
    margin-bottom: 25px;
    color: var(--light);
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--light);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(61, 79, 95, 0.3);
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
