/* ============================================
   common.css — Global Variables, Utilities & Buttons
   ============================================ */

/* ------------------------------
   Root Variables
------------------------------ */
:root {
    /* Brand Colors */
    --color-primary: #ff751f;
    --color-success: #00bf63;
    --color-error: #ff3131;
    --color-warning: #ffcc00;
    --color-info: #38b6ff;
    --color-dark: #192850;
    --color-white: #fff;
    --color-black: #000;
    --color-secondary: #192850;
    /* Added for secondary button */

    /* UI Settings */
    --radius: 8px;
    --transition: all 0.25s ease;
    --shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
}

/* ------------------------------
   Global Reset
------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ------------------------------
   Utility Classes
------------------------------ */

/* --- Spacing --- */
.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

.mt-1 {
    margin-top: var(--space-sm) !important;
}

.mb-1 {
    margin-bottom: var(--space-sm) !important;
}

.mt-2 {
    margin-top: var(--space-md) !important;
}

.mb-2 {
    margin-bottom: var(--space-md) !important;
}

.mt-3 {
    margin-top: var(--space-lg) !important;
}

.mb-3 {
    margin-bottom: var(--space-lg) !important;
}

.pt-1 {
    padding-top: var(--space-sm) !important;
}

.pb-1 {
    padding-bottom: var(--space-sm) !important;
}

.pt-2 {
    padding-top: var(--space-md) !important;
}

.pb-2 {
    padding-bottom: var(--space-md) !important;
}

.pt-3 {
    padding-top: var(--space-lg) !important;
}

.pb-3 {
    padding-bottom: var(--space-lg) !important;
}

/* --- Display --- */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* --- Text Align --- */
.text-center {
    text-align: center !important;
}

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

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

/* --- Width / Height --- */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* --- Background Colors --- */
.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.bg-success {
    background-color: var(--color-success) !important;
    color: var(--color-white) !important;
}

.bg-error {
    background-color: var(--color-error) !important;
    color: var(--color-white) !important;
}

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

.bg-info {
    background-color: var(--color-info) !important;
    color: var(--color-white) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
    color: var(--color-white) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
    color: var(--color-dark) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
}

/* --- Text Colors --- */
.text-primary {
    color: var(--color-primary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-error {
    color: var(--color-error) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-info {
    color: var(--color-info) !important;
}

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

.text-white {
    color: var(--color-white) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

/* --- Border & Radius --- */
.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

/* ------------------------------
   Headings & Paragraph
------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

/* ------------------------------
   Button Styles
------------------------------ */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

/* --- Primary --- */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

.btn-primary:hover {
    background: #e86815;
    box-shadow: var(--shadow);
}

/* --- Secondary --- */
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #0f1b3c;
    box-shadow: var(--shadow);
}

/* --- Success --- */
.btn-success {
    background: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover {
    background: #00a955;
    box-shadow: var(--shadow);
}

/* --- Warning --- */
.btn-warning {
    background: var(--color-warning);
    color: var(--color-black);
}

.btn-warning:hover {
    background: #e6b800;
    box-shadow: var(--shadow);
}

/* --- Error --- */
.btn-error {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-error:hover {
    background: #e02a2a;
    box-shadow: var(--shadow);
}

/* --- Info --- */
.btn-info {
    background: var(--color-info);
    color: var(--color-white);
}

.btn-info:hover {
    background: #2da4e8;
    box-shadow: var(--shadow);
}

/* --- Outline --- */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}

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

/* --- Disabled --- */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Active --- */
.btn:active {
    transform: scale(0.97);
}
