/* Remove any white backgrounds that might cover navbar */
* {
    box-sizing: border-box;
}

/* Main Styles */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Fix container to not overlap navbar */
.container { 
    max-width: 900px; 
    margin: 20px auto; 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* FORCE navbar to be visible - remove any white backgrounds */
.navbar, .navbar * {
    background-color: transparent !important;
}

.navbar {
    background: #0d6efd !important; /* Force solid blue */
    position: relative;
    z-index: 1000;
    margin-bottom: 0;
}

/* Fix navbar brand visibility */
.navbar-brand {
    color: white !important;
    background: transparent !important;
}

/* Fix navbar link visibility */
.navbar-nav .nav-link {
    color: white !important;
    background: transparent !important;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Fix hamburger menu visibility */
.navbar-toggler {
    border-color: white !important;
    background: transparent !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Product image styling */
.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Product card enhancements */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Stock status styling */
.badge {
    font-size: 0.75em;
}

/* Button disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.navbar .btn-light {
    color: white !important;
    background-color: rgba(255,255,255,0.2) !important;
    border-color: white !important;
}

/* Fix dropdown menu styling */
.navbar .dropdown-menu {
    background-color: white !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 160px !important;
    margin-top: 8px !important;
    padding: 8px !important;
    right: 20px !important;
    left: auto !important;
}

.navbar .dropdown-item {
    color: #495057 !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    margin: 2px 0 !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

header h1 {
    color: #333;
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.tagline {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Sections */
.api-testing {
    margin-top: 20px;
}

.api-testing h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Buttons */
button { 
    padding: 12px 20px; 
    margin: 8px; 
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

button:hover { 
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.4);
}

button:active {
    transform: translateY(0);
}

/* Results */
.result { 
    margin: 15px 0; 
    padding: 15px; 
    border-radius: 8px; 
    border-left: 4px solid #ddd;
}

.success { 
    background: #d4edda; 
    color: #155724; 
    border-left-color: #28a745;
}

.error { 
    background: #f8d7da; 
    color: #721c24; 
    border-left-color: #dc3545;
}

.info { 
    background: #d1ecf1; 
    color: #0c5460; 
    border-left-color: #17a2b8;
}

/* Code blocks */
pre { 
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 6px; 
    overflow-x: auto; 
    font-size: 12px; 
    border: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}
