/* base.css */

/* CSS Variables for main and secondary colors */
:root {
    --main-color: #007bff;
    --secondary-color: #343a40;
    --main-color-hover: #0056b3;
    --background-color: #f8f9fa;
    --container-bg: #fff;
    --text-color: #222;
}

/* Reset some default styles */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container for main content */
.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Header styles */
header {
    background: var(--secondary-color);
    color: #fff;
    padding: 24px 0;
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Navigation styles */
nav {
    margin: 16px 0;
    text-align: center;
}

nav a {
    color: var(--main-color);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--main-color-hover);
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 16px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
    border-radius: 0 0 8px 8px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Button styles */
.button, button, input[type="submit"] {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background: var(--main-color-hover);
}

/* Language Selector */
.language-selector {
  display: inline-flex;
  align-items: center;
}

.language-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.language-select:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.language-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.header-actions-account {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    header h1 {
        font-size: 1.5rem;
    }
}
