/* base.css - Consolidated global variables, resets, and shared styles */

/* Core shared variables */
:root {
    --primary-color: #27ae60;
    --secondary-color: #7251d1;
    --gradient-start: #51d172;
    --gradient-end: #32bd56;
    --text-color: #444444;
    --secondary-text-color: #f5f5f5;
    --bg-color: #333333;
    --secondary-bg-color: #424242;
    --input-bg-color: #cecece;
    --error-color: red;
}

/* Global reset for box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-color: var(--primary-color) var(--bg-color);
    scrollbar-width: thin;
}

html::-webkit-scrollbar {
    width: 0.75rem;
}

html::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 0.375rem;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--gradient-start);
}

html::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    border-radius: 0.375rem;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--secondary-text-color);
    font-family: Arial, sans-serif;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Shared layout classes */
.main-content {
    padding: 1.25rem;
    width: 75%;
    margin: 0 auto;
}

.dashboard-title,
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 1.25rem 0;
    text-transform: uppercase;
}

.category-header {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.1875rem solid var(--secondary-color);
}

.no-users-message {
    text-align: center;
    font-style: italic;
    margin: 1.25rem 0;
    color: white;
}

/* Shared component styles */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.3125rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-end);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 0.0625rem solid var(--secondary-bg-color);
    border-radius: 0.3125rem;
    background: var(--input-bg-color);
    color: var(--text-color);
}

.form-input:focus {
    background: var(--secondary-text-color);
    color: var(--text-color);
}

.form-input.error {
    border-color: var(--error-color);
}