/* style.css - QuickBooks Integration Manager Styles */

/* ===== Base Styles ===== */
body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.navbar-brand {
    font-weight: bold;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 90%;
}

.table td:first-child {
    width: 30%;
    font-weight: 500;
}

.alert pre {
    margin-bottom: 0;
}

.btn {
    margin-bottom: 0.5rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* ===== Loading Animation ===== */
.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* ===== Debug Sections ===== */
.debug-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* ===== Status Badges ===== */
.badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* ===== Dev-only Sections ===== */
.border-warning {
    border-width: 2px !important;
}

.border-info {
    border-width: 2px !important;
}

.border-secondary {
    border-width: 2px !important;
}

/* ===== Navigation ===== */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* ===== Card Effects ===== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ===== Button Groups ===== */
.d-grid .btn {
    text-align: left;
    padding: 0.75rem 1rem;
}

.d-grid .btn i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* ===== Logo Styles ===== */
.navbar-logo {
    height: 55px;
    width: auto;
    margin-right: 10px;
}

.hero-logo {
    height: 180px;
    width: auto;
}

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

.logo-connect {
    height: 80px;
    margin-bottom: 20px;
}

/* ===== Landing Page (index.php) ===== */
body.landing-page {
    padding-top: 56px; /* Account for fixed navbar */
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 120px 0 80px 0;
    margin-bottom: 50px;
}

.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.feature-list li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.connection-status {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
}

/* ===== Auth Pages (login.php, signup.php) ===== */
body.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container,
.signup-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.signup-container {
    max-width: 450px;
}

.auth-page .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.password-toggle {
    cursor: pointer;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6c757d;
}

/* ===== Connect QuickBooks Page ===== */
body.connect-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.connect-container {
    max-width: 600px;
    margin: 100px auto;
}

/* ===== Dashboard Styles ===== */
.update-type-card {
    transition: transform 0.2s;
    cursor: pointer;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .hero-logo {
        height: 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .logo-auth {
        height: 50px;
    }
}