/* Utility Classes */

/* ==================================
   SPACING UTILITIES
   ================================== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.p-5 { padding: var(--spacing-xl) !important; }

/* ==================================
   DISPLAY UTILITIES
   ================================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }

/* ==================================
   FLEX UTILITIES
   ================================== */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }

.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-stretch { align-items: stretch !important; }

.flex-1 { flex: 1 !important; }

/* ==================================
   TEXT UTILITIES
   ================================== */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success-main) !important; }
.text-error { color: var(--error-main) !important; }
.text-warning { color: var(--warning-main) !important; }
.text-info { color: var(--info-main) !important; }

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-normal { font-weight: 400 !important; }

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }

/* ==================================
   WIDTH UTILITIES
   ================================== */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.w-75 { width: 75% !important; }

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

/* ==================================
   BACKGROUND UTILITIES
   ================================== */
.bg-white { background-color: white !important; }
.bg-primary { background-color: var(--primary-main) !important; }
.bg-secondary { background-color: var(--grey-100) !important; }
.bg-success { background-color: var(--success-main) !important; }
.bg-error { background-color: var(--error-main) !important; }
.bg-warning { background-color: var(--warning-main) !important; }

/* ==================================
   BORDER UTILITIES
   ================================== */
.border { border: 1px solid var(--divider) !important; }
.border-0 { border: none !important; }
.border-t { border-top: 1px solid var(--divider) !important; }
.border-b { border-bottom: 1px solid var(--divider) !important; }
.border-l { border-left: 1px solid var(--divider) !important; }
.border-r { border-right: 1px solid var(--divider) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-none { border-radius: 0 !important; }

/* ==================================
   SHADOW UTILITIES
   ================================== */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* ==================================
   OVERFLOW UTILITIES
   ================================== */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-y-hidden { overflow-y: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* ==================================
   POSITION UTILITIES
   ================================== */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

/* ==================================
   CURSOR UTILITIES
   ================================== */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* ==================================
   OPACITY UTILITIES
   ================================== */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ==================================
   Z-INDEX UTILITIES
   ================================== */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* ==================================
   BUTTON UTILITIES
   ================================== */
.btn-success {
    background: var(--success-main);
    color: white;
    border: 1px solid var(--success-main);
}

.btn-success:hover {
    background: #1e8449;
    border-color: #1e8449;
}

.btn-info {
    background: var(--info-main);
    color: white;
    border: 1px solid var(--info-main);
}

.btn-info:hover {
    background: #1e40af;
    border-color: #1e40af;
}

/* ==================================
   ACCESS DENIED MESSAGE
   ================================== */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--spacing-xl);
    text-align: center;
}

.access-denied h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.access-denied p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    max-width: 500px;
}

