/* Container */
.station-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Header - Matching grey theme */
.station-header {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(90, 90, 90, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

.header-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.station-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.station-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

/* Alerts */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Cards */
.station-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd;
}

.card-header-section {
    margin-bottom: 2rem;
}

.header-with-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #444;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.5rem;
}

.card-description {
    color: #777;
    font-size: 0.95rem;
    margin: 0;
}

.count-badge {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Form */
.station-form {
    max-width: 600px;
}

.form-field {
    margin-bottom: 1.5rem;
}

.field-label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #e53935;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    pointer-events: none;
    color: #888;
}

.field-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.field-input:focus {
    outline: none;
    border-color: #888;
    background: white;
    box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.1);
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777;
}

.hint-icon {
    font-size: 1rem;
}

/* Button - Matching grey theme */
.btn-primary-station {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(90, 90, 90, 0.4);
}

.btn-primary-station:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 90, 90, 0.5);
}

.btn-primary-station:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444;
    margin: 0 0 0.5rem 0;
}

.empty-text {
    color: #777;
    font-size: 1rem;
    margin: 0;
}

/* Stations Grid */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.station-item {
    background: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.station-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #888;
}

.station-item-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.station-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.station-item-info {
    flex: 1;
}

.station-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 0 0 0.25rem 0;
}

.station-serial {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.serial-label {
    font-weight: 500;
}

code {
    background: #eee;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #555;
}

.station-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.station-item-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .station-container {
        padding: 0 1rem;
    }

    .station-header {
        padding: 2rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .station-title {
        font-size: 1.5rem;
    }

    .station-card {
        padding: 1.5rem;
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }
}