/* 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;
}

/* 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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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; }
}

/* Edit button */
.btn-edit-station {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 90, 90, 0.3);
}

.btn-edit-station:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 90, 90, 0.4);
}

/* Inline edit fields */
.inline-field {
    margin-bottom: 8px;
}

.inline-input {
    width: 100%;
    font-size: 13px;
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s;
}

.inline-input:focus {
    outline: none;
    border-color: #888;
    background: white;
}

.inline-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.btn-save-inline {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-save-inline:hover {
    background: #15803d;
}

.btn-cancel-inline {
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-cancel-inline:hover {
    background: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
    .station-card {
        padding: 1.5rem;
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }
}
.footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-delete-station {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete-station:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}