/* 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;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-color: var(--primary-color) var(--bg-color);
    scrollbar-width: thin;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--gradient-start);
}

html::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    border-radius: 6px;
}

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: 20px;
}

.dashboard-title,
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 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: 3px solid var(--secondary-color);
}

.no-users-message {
    text-align: center;
    font-style: italic;
    margin: 20px 0;
    color: white;
}

/* Shared component styles */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    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: 1px solid var(--secondary-bg-color);
    border-radius: 5px;
    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);
}
