/* Google Sheets Integration Styles */
.google-sheets-content {
    padding: 20px 0;
}

/* Connection Status */
.connection-status .status-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    height: 100%;
}

.connection-status .status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.status-card.status-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 100%);
}

.status-card.status-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.status-card.status-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
}

.status-card.status-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e3f2fd 100%);
}

.status-card.status-neutral {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.status-card .status-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-card.status-success .status-icon {
    color: #28a745;
}

.status-card.status-warning .status-icon {
    color: #ffc107;
}

.status-card.status-error .status-icon {
    color: #dc3545;
}

.status-card.status-info .status-icon {
    color: #17a2b8;
}

.status-card.status-neutral .status-icon {
    color: #6c757d;
}

.status-card .status-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-card .status-content p {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #343a40;
}

/* Cards */
.guide-card,
.stats-card,
.config-card,
.sheets-card,
.import-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.guide-card:hover,
.stats-card:hover,
.config-card:hover,
.sheets-card:hover,
.import-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.guide-card .card-header,
.stats-card .card-header,
.config-card .card-header,
.sheets-card .card-header,
.import-card .card-header {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px 25px;
    border: none;
}

.guide-card .card-header h4,
.stats-card .card-header h4,
.config-card .card-header h4,
.sheets-card .card-header h4,
.import-card .card-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.guide-card .card-body,
.stats-card .card-body,
.config-card .card-body,
.sheets-card .card-body,
.import-card .card-body {
    padding: 25px;
}

/* Setup Guide */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #4285F4;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    color: #5f6368;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Quick Stats */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    color: #4285F4;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #3c4043;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
    background: white;
}

.form-check-input:checked {
    background-color: #4285F4;
    border-color: #4285F4;
}

.form-text {
    font-size: 0.85rem;
    color: #5f6368;
    margin-top: 5px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #34A853 0%, #4285F4 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.4);
}

.btn-outline-primary {
    border: 2px solid #4285F4;
    color: #4285F4;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #4285F4;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #ea4335;
    color: #ea4335;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #ea4335;
    color: white;
    transform: translateY(-2px);
}

/* Connection Status */
.connected-status .alert {
    border-radius: 8px;
    border: none;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d0edda 100%);
    border-left: 4px solid #34A853;
}

.connection-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.connection-details code {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #495057;
}

/* Sheet Preview */
.sheet-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.preview-table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.preview-table .table {
    margin: 0;
    font-size: 0.85rem;
}

.preview-table .table th {
    background: #4285F4;
    color: white;
    border: none;
    padding: 12px 8px;
    font-weight: 600;
}

.preview-table .table td {
    padding: 10px 8px;
    border-color: #f1f3f4;
    vertical-align: middle;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #d0edda 100%);
    color: #155724;
    border-left: 4px solid #34A853;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0c5460;
    border-left: 4px solid #4285F4;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-left: 4px solid #ea4335;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.google-sheets-content > * {
    animation: fadeInUp 0.6s ease-out;
}

.fa-bounce {
    animation: bounce 2s infinite;
}

/* Loading States */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Form Switches */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: #4285F4;
    border-color: #4285F4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .connection-status .col-md-3 {
        margin-bottom: 15px;
    }
    
    .guide-card .card-body,
    .stats-card .card-body,
    .config-card .card-body,
    .sheets-card .card-body,
    .import-card .card-body {
        padding: 20px 15px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Google Brand Colors */
.text-google-blue { color: #4285F4; }
.text-google-green { color: #34A853; }
.text-google-yellow { color: #FBBC05; }
.text-google-red { color: #EA4335; }

.bg-google-blue { background-color: #4285F4; }
.bg-google-green { background-color: #34A853; }
.bg-google-yellow { background-color: #FBBC05; }
.bg-google-red { background-color: #EA4335; }