/* GoFastOnline - Main CSS */

/* CSS Variables */
:root {
    --google-blue: #4285f4;
    --google-blue-200: #aecbfa;
    --google-blue-400: #66a3ff;
    --google-blue-600: #1a73e8;
    --google-blue-50: #e8f0fe;
    --google-blue-100: #d2e3fc;
    --google-green: #34a853;
    --google-green-50: #e6f4ea;
    --google-green-200: #a8dab5;
    --google-green-800: #137333;
    --google-yellow: #fbbc04;
    --google-yellow-700: #f57c00;
    --google-red: #ea4335;
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
    --google-gray-600: #5f6368;
    --google-gray-700: #3c4043;
    --google-gray-900: #202124;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #5f6368;
    --gray-700: #3c4043;
    --gray-800: #202124;
    --gray-900: #1a1a1a;
    --dark-color: #202124;
    --light-color: #fafafa;
}

/* Base Typography */
body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Product Sans', 'Google Sans', sans-serif;
    font-weight: 500;
    color: var(--gray-800);
}

/* Button Styles */
.btn-primary {
    background-color: var(--google-blue);
    border-color: var(--google-blue);
    font-weight: 500;
    border-radius: 24px;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-outline-primary {
    color: var(--google-blue);
    border-color: var(--google-blue);
    font-weight: 500;
    border-radius: 24px;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--google-blue);
    border-color: var(--google-blue);
    transform: translateY(-1px);
}

.btn-google {
    background: white;
    color: var(--google-blue);
    border: 1px solid var(--gray-300);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: var(--gray-50);
    color: var(--google-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn {
    font-weight: 500;
    border-radius: 24px;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.btn-success {
    background-color: var(--google-green);
    border-color: var(--google-green);
}

.btn-success:hover {
    background-color: #2d7d32;
    border-color: #2d7d32;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--google-yellow);
    border-color: var(--google-yellow);
    color: var(--gray-800);
}

.btn-warning:hover {
    background-color: #f9ab00;
    border-color: #f9ab00;
    color: var(--gray-800);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--google-red);
    border-color: var(--google-red);
}

.btn-danger:hover {
    background-color: #d33b2c;
    border-color: #d33b2c;
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    z-index: 1030;
    position: relative;
}

.navbar-brand {
    font-family: 'Product Sans', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--google-blue) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--google-blue) !important;
    background-color: var(--gray-100);
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    z-index: 1050;
}

.dropdown-item {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--google-blue);
}

/* Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
    font-weight: 500;
}

/* Forms */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--google-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    outline: none;
}

/* Select dropdowns */
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-select:focus {
    border-color: var(--google-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    outline: none;
}

/* Checkboxes and Radio buttons */
.form-check {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    margin-right: 8px;
    margin-top: 0;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.2s ease;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--google-blue);
    border-color: var(--google-blue);
}

.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--google-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    outline: none;
}

.form-check-input:hover {
    border-color: var(--google-blue);
}

.form-check-label {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Input groups */
.input-group .form-control,
.input-group .form-select {
    border-radius: 0;
}

.input-group .form-control:first-child,
.input-group .form-select:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group .form-control:last-child,
.input-group .form-select:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Form validation states */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-valid {
    border-color: #28a745;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-info {
    background-color: rgba(66, 133, 244, 0.15) !important;
    color: var(--google-blue) !important;
    border-color: rgba(66, 133, 244, 0.3);
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.15) !important;
    color: var(--google-green) !important;
    border-color: rgba(52, 168, 83, 0.3);
}

.alert-warning {
    background-color: rgba(251, 188, 4, 0.15) !important;
    color: #f57c00 !important;
    border-color: rgba(251, 188, 4, 0.3);
}

.alert-danger {
    background-color: rgba(234, 67, 53, 0.15) !important;
    color: var(--google-red) !important;
    border-color: rgba(234, 67, 53, 0.3);
}

.alert-primary {
    background-color: rgba(66, 133, 244, 0.15) !important;
    color: var(--google-blue) !important;
    border-color: rgba(66, 133, 244, 0.3);
}

.alert-light {
    background-color: rgba(248, 249, 250, 1) !important;
    color: var(--gray-700) !important;
    border-color: rgba(206, 212, 218, 0.5);
}

.alert-dark {
    background-color: rgba(52, 58, 64, 0.15) !important;
    color: var(--gray-800) !important;
    border-color: rgba(52, 58, 64, 0.3);
}

/* Utilities */
.text-primary {
    color: var(--google-blue) !important;
}

.bg-primary {
    background-color: var(--google-blue) !important;
}

.bg-success {
    background-color: var(--google-green) !important;
}

.bg-warning {
    background-color: var(--google-yellow) !important;
    color: var(--gray-800) !important;
}

/* Bootstrap overrides for better visibility */
.bg-info {
    background-color: var(--google-blue) !important;
    color: white !important;
}

.bg-warning {
    background-color: var(--google-yellow) !important;
    color: var(--gray-800) !important;
}

.bg-success {
    background-color: var(--google-green) !important;
    color: white !important;
}

.bg-danger {
    background-color: var(--google-red) !important;
    color: white !important;
}

.bg-primary {
    background-color: var(--google-blue) !important;
    color: white !important;
}

.bg-secondary {
    background-color: var(--gray-600) !important;
    color: white !important;
}

/* Badge */
.badge {
    font-weight: 500;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 500;
    color: var(--gray-700);
}

.table td {
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: white;
}

/* Sections */
.hero-section {
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-green) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header {
    background: var(--gray-50);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    text-decoration: none !important;
}

.section-title::after,
.section-title::before {
    display: none !important;
    content: none !important;
}

.section-padding {
    padding: 4rem 0;
}

/* Authentication pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-600);
}