/* Main styles for Shopee Affiliate API Playground */

body {
    background-color: #f5f5f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: none;
    background-color: #fff;
    margin-bottom: 20px;
}

.card-header {
    background-color: #ff5500;
    color: #fff;
    font-weight: bold;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.nav-tabs .nav-link {
    color: #666;
}

.nav-tabs .nav-link.active {
    color: #ff5500;
    font-weight: bold;
}

.btn-primary {
    background-color: #ff5500;
    border-color: #ff5500;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e64d00;
    border-color: #e64d00;
}

.form-label {
    font-weight: 500;
}

#response-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
}

.hljs {
    background: #f8f9fa !important;
    border-radius: 5px;
}

.api-description {
    color: #666;
    font-size: 0.9rem;
}

.tab-pane {
    padding: 20px 0;
}

.accordion-button:not(.collapsed) {
    color: #ff5500;
}

.accordion-button:focus {
    box-shadow: none;
}

.header-logo {
    height: 40px;
    margin-right: 10px;
}

/* Contact page styles */
.contact-icon {
    font-size: 2rem;
    color: #ff5500;
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

/* Footer styling */
footer {
    background-color: #343a40;
    margin-top: auto;
}

/* Accessibility improvements */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #ff5500;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .no-print {
        display: none;
    }
}

/* Google AdSense Styles */
.ad-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container .adsbygoogle {
    display: block;
    width: 100%;
}

/* Responsive ad containers */
@media (max-width: 768px) {
    .ad-container {
        min-height: 70px;
        padding: 8px;
    }
}

/* Print - hide ads */
@media print {
    .ad-container,
    .adsbygoogle {
        display: none !important;
    }
}

/* JSON formatter styles */
.json-formatter {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.json-key {
    color: #d63384;
}

.json-string {
    color: #198754;
}

.json-number {
    color: #fd7e14;
}

.json-boolean {
    color: #0d6efd;
}

.json-null {
    color: #6c757d;
}

.json-bracket, .json-brace {
    color: #000;
}

.json-comma {
    color: #6c757d;
}

.json-toggle {
    cursor: pointer;
    margin-left: 4px;
}

.json-toggle:before {
    content: '▼';
    display: inline-block;
    width: 12px;
    color: #6c757d;
}

.json-toggle.expanded:before {
    content: '▲';
}

.json-array, .json-object {
    margin: 0 0 0 20px;
    padding: 0;
    list-style: none;
}

.json-array li, .json-object li {
    position: relative;
}

.copy-btn {
    cursor: pointer;
}

/* Button styles */
.btn-outline-secondary {
    border-color: #ff5500;
    color: #ff5500;
}

.btn-outline-secondary:hover {
    background-color: #ff5500;
    border-color: #ff5500;
    color: white;
} 