/* ===============================
   COMMON.CSS
   Colors:
   Gray: #918f8f
   Black: #000
   White: #fff
   Dark Blue: #1a1054
   Blue: #255ff1
================================= */

/* ---------- CSS Variables ---------- */
:root {
    --color-gray: #918f8f;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-dark-blue: #1a1054;
    --color-blue: #255ff1;

    --btn-padding: 10px 20px;
    --btn-radius: 6px;
    --btn-font-weight: 600;
    --transition-speed: 0.3s;
}

/* ---------- Global Reset ---------- */
* {
    color: var(--color-black);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-dark-blue);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

/* Button Variants */
.btn-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-gray);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-black);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn-outline:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-md {
    padding: 10px 20px;
    font-size: 1rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.125rem;
}

/* Disabled Buttons */
.btn:disabled,
.btn.disabled {
    background-color: var(--color-gray);
    color: var(--color-white);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button Focus */
.btn:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* ---------- Background Helpers ---------- */
.bg-white {
    background-color: var(--color-white);
}

.bg-black {
    background-color: var(--color-black);
}

.bg-gray {
    background-color: var(--color-gray);
}

.bg-blue {
    background-color: var(--color-blue);
}

.bg-dark-blue {
    background-color: var(--color-dark-blue);
}

/* ---------- Text Colors ---------- */
.text-white {
    color: var(--color-white);
}

.text-black {
    color: var(--color-black);
}

.text-gray {
    color: var(--color-gray);
}

.text-blue {
    color: var(--color-blue);
}

.text-dark-blue {
    color: var(--color-dark-blue);
}

/* ---------- Borders ---------- */
.border {
    border: 1px solid var(--color-gray);
}

.border-black {
    border: 1px solid var(--color-black);
}

.border-blue {
    border: 1px solid var(--color-blue);
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.m-10 {
    margin: 10px;
}

.m-20 {
    margin: 20px;
}

.rounded {
    border-radius: var(--btn-radius);
}

/* ---------- Hover Effects ---------- */
.hover-shadow:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform var(--transition-speed);
}

/* ---------- Smooth Transitions ---------- */
*,
*::before,
*::after {
    transition: all var(--transition-speed);
}

.mandatory{
    font-weight: 700;
    color: #ff4500;
}
