/* Device Selection Page Styles */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.device-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.device-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.device-info {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.device-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .devices-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .device-image {
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .devices-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .device-info h3 {
        font-size: 1rem;
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Device Page Specific Styles */
.back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button i {
    margin-left: 0.5rem;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.device-logo {
    height: 50px;
    margin-left: 1rem;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}