* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #003DA5 0%, #0039A6 50%, #1a1a2e 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; opacity: 0.9; }

.search-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 0.9rem; }

.form-control {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}
.form-control:focus { outline: none; border-color: #003DA5; box-shadow: 0 0 0 3px rgba(0,61,165,0.15); }

.loading { text-align: center; padding: 40px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #003DA5; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.results { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.results-header { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #e0e0e0; }
.results-header h2 { color: #333; margin-bottom: 5px; }
.results-count { color: #666; font-size: 0.9rem; }

.station-list { display: grid; gap: 15px; margin-bottom: 30px; }

.station-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}
.station-card:hover { border-color: #003DA5; box-shadow: 0 4px 12px rgba(0,61,165,0.2); transform: translateY(-2px); }
.station-info h3 { color: #333; margin-bottom: 8px; font-size: 1.3rem; }
.station-details { display: flex; flex-wrap: wrap; gap: 10px; color: #666; font-size: 0.9rem; align-items: center; }
.station-detail { display: flex; align-items: center; gap: 5px; }
.routes { display: flex; flex-wrap: wrap; gap: 4px; }

.line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.station-actions { display: flex; gap: 10px; }
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary { background: linear-gradient(135deg, #003DA5 0%, #0039A6 100%); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,61,165,0.4); }
.btn-secondary { background: #f5f5f5; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagination button { padding: 10px 16px; border: 2px solid #e0e0e0; background: white; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.pagination button:hover:not(:disabled) { border-color: #003DA5; color: #003DA5; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination button.active { background: #003DA5; color: white; border-color: #003DA5; }
.pagination-info { color: #666; font-size: 0.9rem; }

.no-results { text-align: center; padding: 60px 20px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: #666; font-size: 1.1rem; }

@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .search-panel { grid-template-columns: 1fr; padding: 20px; }
    .station-card { grid-template-columns: 1fr; }
    .station-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
