/* Global Styles for Volvo Connect */

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

body {
    font-family: sans-serif;
    background-color: #151D20;
    box-sizing: border-box;
    color: #dbe4e8;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 32px;
    text-size-adjust: 100%;
    min-height: 100vh;
    padding: 20px;
}

.container {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.header {
    color: white;
    padding: 30px 0;
    text-align: center;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.info-txt {
    padding: 20px 0;
    border-top: solid 1px #40484C;
    border-bottom: solid 1px #40484C;
}

h2 {
    font-size: 18px;
    font-weight: 600;
}

.info-txt h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.content {
    text-align: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.connect-btn,
.btn-primary {
    background-color: #eff1f2;
    border: 1px solid #eff1f2;
    color: #2e3132;
    width: 100%;
}

.connect-btn:hover,
.btn-primary:hover {
    background-color: #424749;
    border: 1px solid #eff1f2;
    color: #eff1f2;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    flex-direction: column;
    gap: 15px;
}

/* Links */
a {
    color: #dbe4e8;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 50px;
    color: #b9b6b6;
    font-size: 15px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #121213;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    display: none;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Vehicle Cards (for future use) */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.vehicle-vin {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 10px;
}

.vehicle-info {
    color: #666;
    font-size: 0.9rem;
}

.no-vehicles {
    text-align: center;
    color: #666;
    padding: 50px;
    font-size: 1.2rem;
}

.circular-brand-logo {
    width: 60px;
    max-height: 60px;
    border: 1px solid #40484C;
    border-radius: 50%;
}

.circular-brand-logo-container {
    margin: 0 1rem;
    justify-content: center;
    display: flex;
}

.flex-grow {
    flex-grow: 1;
}

.brand-list-item {
    height: unset;
    text-align: left;
    border: 1px solid #40484C;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .0392156863);
    margin-bottom: 1rem;
    padding: .5rem 1rem .5rem 0;
    background: none;
    width: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    border-radius: 10px;
    margin: 30px 0 -30px;
}