/* Variables de thème globales */
:root {
    /* Couleurs de base */
    --background: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #6e6e6e;
    --border-color: #e5e7eb;
    --hover-background: #f3f4f6;

    /* Couleurs primaires */
    --primary-color: #2563eb;
    --primary-color-dark: #1d4ed8;
    --primary-rgb: 37, 99, 235;

    /* Couleurs des méthodes HTTP */
    --get-color: #22c55e;
    --post-color: #3b82f6;
    --put-color: #f59e0b;
    --delete-color: #ef4444;
    --patch-color: #8b5cf6;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Thème sombre */
.dark-mode {
    --background: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    --hover-background: #2d2d2d;

    /* Ajustement des couleurs primaires */
    --primary-color: #3b82f6;
    --primary-color-dark: #2563eb;
    --primary-rgb: 59, 130, 246;

    /* Ajustement des ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Styles de base */
body {
    background-color: var(--background);
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Styles des méthodes HTTP */
.method-get {
    color: var(--get-color);
    background-color: rgba(34, 197, 94, 0.1);
}

.method-post {
    color: var(--post-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.method-put {
    color: var(--put-color);
    background-color: rgba(245, 158, 11, 0.1);
}

.method-delete {
    color: var(--delete-color);
    background-color: rgba(239, 68, 68, 0.1);
}

.method-patch {
    color: var(--patch-color);
    background-color: rgba(139, 92, 246, 0.1);
}

/* Styles des conteneurs */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    margin-top: 64px;
    padding: 2rem 0;
}

/* Styles des cartes et sections */
.card {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Styles des liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Styles des boutons */
button {
    transition: all var(--transition-normal);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Styles des entrées */
input, textarea, select {
    background-color: var(--background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Styles des scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Transitions */
body,
.header,
.search-input,
.export-dropdown,
.endpoint-block,
.base-url,
.response-example {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
