:root {
    --primary-color: #2196f3;
    --primary-dark: #1976d2;
    --secondary-color: #f5f5f5;
    --accent-color: #ff4081;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background-light: #ffffff;
    --background-dark: #f5f7fa;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --sidebar-width: 380px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--background-light);
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.app-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search Controls */
.search-controls {
    padding: 1rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.near-me-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.near-me-button:hover {
    background: var(--primary-dark);
}

/* Filters Section */
.filters-section {
    padding: 1rem;
    background: var(--background-dark);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
}

.apply-filters-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Results Section */
.results-section {
    padding: 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.spots-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wifi-spot-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.wifi-spot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.type-badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: var(--background-dark);
    border-radius: 12px;
    font-size: 0.8rem;
}

.card-body {
    font-size: 0.9rem;
}

.card-body p {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body i {
    color: var(--text-secondary);
    width: 1rem;
}

.distance {
    color: var(--primary-color);
    font-weight: 500;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.card-footer button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.card-footer button:hover {
    background: var(--primary-color);
    color: white;
}

.load-more-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--background-dark);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.load-more-button:hover {
    background: var(--border-color);
}

/* Map Container */
.main-content {
    flex: 1;
    height: 100vh;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 50vh;
    }

    .main-content {
        height: 50vh;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Welcome Screen Styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 0;
}

.welcome-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    color: white;
    animation: fadeIn 0.5s ease-out;
    margin: auto;
}

.welcome-header {
    margin-bottom: 3rem;
}

.welcome-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.welcome-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.welcome-search {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.welcome-search h2 {
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.welcome-search-button,
.welcome-near-me-button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-near-me-button {
    background: rgba(255, 255, 255, 0.2);
}

.welcome-search-button:hover {
    background: #e91e63;
}

.welcome-near-me-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Welcome Screen */
@media (max-width: 768px) {
    .welcome-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .welcome-content {
        padding: 1rem;
        margin: 1rem;
    }

    .speed-test-results {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Advanced Filters */
.toggle-advanced {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--background-dark);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-advanced:hover {
    background: var(--border-color);
}

.advanced-filters {
    padding: 1rem;
    background: var(--background-dark);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.advanced-filters.hidden {
    display: none;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

#radiusValue {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* View Controls */
.view-controls {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.view-button {
    flex: 1;
    padding: 0.75rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.view-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Route message styles */
.route-message {
    padding: 0.5rem 1rem;
    background: var(--background-dark);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.form-buttons button[type="submit"] {
    background: var(--primary-color);
    color: white;
}

.form-buttons button.close-modal {
    background: var(--background-dark);
    color: var(--text-secondary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.star-rating i {
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1.5rem;
    padding: 0.2rem;
    transition: all 0.2s ease;
}

.star-rating i.fas {
    color: #ffd700;
}

.star-rating i:hover {
    transform: scale(1.2);
    color: #ffd700;
}

/* WiFi Card Updates */
.wifi-spot-card {
    position: relative;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-indicator.active {
    background: var(--success-color);
}

.reviews {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffd700;
}

/* Route Planning */
.route-planning {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.route-planning.hidden {
    display: none;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .view-controls {
        flex-direction: column;
    }
}

/* Card Enhancements */
.wifi-spot-card {
    position: relative;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Network Status */
.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--background-dark);
    border-radius: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-indicator.active {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

/* Speed Info */
.speed-info {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--background-dark);
    border-radius: 6px;
}

.speed-info p {
    margin: 0.25rem 0;
}

.speed-info small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Reviews Section */
.reviews {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.rating {
    color: #ffd700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.review-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Card Actions */
.card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-button {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--background-dark);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.action-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Route Planning */
.route-button {
    background: var(--background-dark);
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-button.active {
    background: var(--primary-color);
    color: white;
}

/* Distance Badge */
.distance {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Card Hover Effects */
.wifi-spot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wifi-spot-card.route-highlight {
    border: 2px solid var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-actions {
        grid-template-columns: 1fr;
    }

    .distance {
        position: static;
        display: inline-flex;
        margin-top: 0.5rem;
    }

    .favorite-button {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Animation for Status Updates */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-indicator.active {
    animation: pulse 2s infinite;
}

/* Hover Tooltips */
[title] {
    position: relative;
    cursor: help;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10;
}

/* Welcome Screen Enhancements */
.welcome-screen {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.welcome-content {
    animation: fadeIn 0.5s ease-out;
}

/* Modal Enhancements */
.modal {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: slideIn 0.3s ease-out;
}

/* Star Rating Improvements */
.star-rating i {
    font-size: 1.5rem;
    padding: 0.2rem;
    transition: all 0.2s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
    color: #ffd700;
}

/* Review List Styles */
.review {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review .rating {
    margin-bottom: 0.5rem;
}

.review p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.review small {
    color: var(--text-secondary);
}

/* Speed Test Form */
.speed-test-form {
    display: grid;
    gap: 1rem;
}

.speed-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-input-group input {
    flex: 1;
}

.speed-input-group span {
    color: var(--text-secondary);
}

/* Route Planning Enhancements */
.leaflet-routing-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
}

.route-waypoint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--background-dark);
    border-radius: 4px;
    margin: 0.25rem 0;
}

/* Animation Keyframes */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f110';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus States */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a1a1a;
        --background-dark: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --border-color: #404040;
    }

    .wifi-spot-card {
        background: #2d2d2d;
    }

    .modal-content {
        background: #1a1a1a;
    }
}

/* Route Planning Styles */
.route-marker {
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.selected-for-route {
    border: 2px solid var(--primary-color);
}

.route-button {
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-button.active {
    background: var(--primary-color);
    color: white;
}

#routeMessage {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: center;
}

/* Route Instructions Styling */
.route-instructions {
    position: absolute;
    top: 80px;
    right: 20px;
    max-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}

.route-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background: var(--background-dark);
    border-radius: 6px;
    margin-bottom: 10px;
}

.route-summary span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
}

.show-directions-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.show-directions-btn:hover {
    background: var(--primary-dark);
}

.route-marker {
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Leaflet Routing Machine Customization */
.leaflet-routing-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.leaflet-routing-alt {
    max-height: 50vh !important;
}

.leaflet-routing-alt h2 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.leaflet-routing-alt-minimized {
    display: none;
}

.leaflet-routing-instructions {
    margin: 0;
}

.leaflet-routing-instruction-distance {
    width: 60px;
    color: var(--primary-color);
}

.leaflet-routing-instruction-text {
    position: relative;
    padding-left: 25px;
}

.leaflet-routing-instruction-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Speed Test Styles */
.speed-test-container {
    margin-top: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.speed-test-button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.speed-test-button:hover {
    background: #e91e63;
    transform: translateY(-2px);
}

.speed-test-button.testing {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.speed-test-results {
    margin: 1.5rem auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.speed-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.speed-result i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.connection-info {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.testing {
    animation: pulse 1s infinite;
}

/* Speed Rating Styles */
.speed-rating {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.speed-excellent {
    background: #4caf50;
    color: white;
}

.speed-very-good {
    background: #8bc34a;
    color: white;
}

.speed-good {
    background: #ffc107;
    color: black;
}

.speed-fair {
    background: #ff9800;
    color: white;
}

.speed-poor {
    background: #f44336;
    color: white;
}