/* ================================================================================= */
/* C-1.0: ROOT & THEME VARIABLES                                                     */
/* ================================================================================= */

:root {
    /* Base text colors for night mode (default) */
    --text-color-dark-primary: #FFFFFF;
    --text-color-dark-secondary: #D1D5DB; /* gray-300 */
    --text-color-dark-tertiary: #9CA3AF;  /* gray-400 */
    --text-color-dark-quaternary: #6B7280; /* gray-500 */

    /* Base text colors for light mode */
    --text-color-light-primary: #1F2937;   /* gray-800 */
    --text-color-light-secondary: #374151;/* gray-700 */
    --text-color-light-tertiary: #4B5563; /* gray-600 */
    --text-color-light-quaternary: #6B7280;/* gray-500 */

    /* Dynamic variables that will be set by JS */
    --text-color-primary: var(--text-color-dark-primary);
    --text-color-secondary: var(--text-color-dark-secondary);
    --text-color-tertiary: var(--text-color-dark-tertiary);
    --text-color-quaternary: var(--text-color-dark-quaternary);
    --text-shadow: none;
    --border-color-primary: #4A5568; /* Default border for night mode */
    --border-color-secondary: #374151;
    --focus-ring-color: #63B3ED; /* blue-400 */
}

/* ================================================================================= */
/* C-2.0: LAYOUT & CORE ELEMENTS                                                     */
/* ================================================================================= */

/* Navigation Tabs */
.nav-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color-primary);
    padding-bottom: 10px;
}

@media (max-width: 600px) {
    .nav-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bg-main {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    color: var(--text-color-primary);
}

body.modal-open {
    overflow: hidden;
}

/* Main App Container */
.app-container {
    max-width: 80rem; /* max-w-7xl approx */
    margin-left: auto;
    margin-right: auto;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

#icon-picker-modal {
    z-index: 1050;
}

.modal-content {
    color: var(--text-color-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

.bg-modal {
    margin: auto;
    padding: 1.5rem;
    border: 1px solid var(--border-color-primary);
    width: 100%;
    max-width: 550px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

#task-view-modal-border-wrapper {
    box-sizing: border-box;
    width: calc(100% - 1.5rem);
    max-width: 580px;
    margin: auto;
}

@media (max-width: 640px) {
    .bg-modal {
        padding: 1rem;
        width: calc(100% - 1rem);
    }
}

.close-button {
    color: var(--text-color-tertiary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover, .close-button:focus {
    color: var(--text-color-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

/* View Content */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1F2937; }
::-webkit-scrollbar-thumb { background: #4B5563; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6B7280; }

/* ================================================================================= */
/* C-3.0: BUTTONS                                                                    */
/* ================================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
}
.btn:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SIZES */
.btn-lg {
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.btn-md {
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.375rem; /* rounded-md */
}

.btn-sm {
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
}

.btn-xs {
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    font-size: 0.875rem; /* text-sm */
    border-radius: 0.375rem; /* rounded-md */
}

.btn-clear {
    padding: 0.25rem 0.5rem;
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 500;
}

.active-view-btn, .fc-button-active {
    background-color: var(--btn-primary-bg) !important;
    color: var(--text-color-on-primary) !important;
    box-shadow: 0 0 8px 2px var(--focus-ring-color), inset 0 0 5px rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-secondary-bg);
    color: var(--text-color-on-secondary);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ================================================================================= */
/* C-4.0: FORM ELEMENTS                                                              */
/* ================================================================================= */

.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color-secondary);
}
.form-hint {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
    color: var(--text-color-quaternary);
}
input[type="text"], input[type="number"], input[type="datetime-local"], input[type="date"], textarea, select, .form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color-primary);
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-input, transparent);
    color: var(--text-color-primary);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--focus-ring-color);
    box-shadow: 0 0 0 1px var(--focus-ring-color);
    outline: none;
}
.duration-input {
    width: 6rem;
}
.miss-input {
    font-size: 0.75rem;
    border-width: 1px;
    border-radius: 0.25rem;
    padding: 0.25rem;
    width: 2.5rem;
    text-align: center;
    margin: 0 0.25rem;
}
fieldset {
    border: none;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}
legend {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 0.25rem;
    color: var(--text-color-tertiary);
}
.form-legend {
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color-secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.toggle-checkbox {
    position: relative;
    width: 3rem; height: 1.5rem; padding: 0.125rem;
    border-radius: 9999px;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.toggle-checkbox::before {
    content: '';
    position: absolute;
    left: 2px; top: 2px;
    width: 1.25rem; height: 1.25rem;
    background-color: var(--toggle-peg-color, white);
    border-radius: 9999px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    transform: scale(0.8);
}
.toggle-checkbox:checked::before {
    transform: translateX(1.5rem) scale(0.8);
}

/* ================================================================================= */
/* C-5.0: COMPONENT-SPECIFIC STYLES                                                  */
/* ================================================================================= */

/* HINTS BANNER */
.hints-banner {
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    background-color: var(--bg-secondary);
}
.hints-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* TASK MANAGER */
#task-manager-view .controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#task-manager-view .controls .button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.task-item {
    transition: border-left-color 0.3s ease, background-color 0.3s ease, opacity 0.2s ease, border 0.2s ease;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}
.task-completed {
    opacity: 0.6;
}
.task-completed h3 {
    text-decoration: line-through;
}
.task-locked {
    opacity: 0.7;
    filter: grayscale(0.3);
}
.countdown-timer {
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.2;
    padding-bottom: 0.25rem;
    min-height: 1rem;
    color: var(--text-color-secondary);
}

/* JOURNAL */
.journal-entry {
    padding: 1rem;
    border-radius: 0.5rem;
}
.journal-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    border-bottom: 2px solid var(--border-color-secondary);
    transition: background-color 0.2s;
}
.journal-entry .prose {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* CALENDAR */
#mainPlannerSection {
    background: var(--bg-calendar-border, transparent);
    padding: 14px;
    border-radius: 0.75rem;
}
#calendar-inner-wrapper {
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    overflow: hidden;
}
#calendar {
    min-height: 70vh;
}
.fc-event {
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    font-size: 0.75rem;
    border-width: 2px !important;
    border-style: solid;
    line-height: 1.3;
}
.fc-event-main-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

/* SETTINGS ACCORDIONS */
.top-level-accordion-section {
    /* Removed border and border-radius to match journal style */
}
.top-level-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background-color: transparent;
    transition: background-color 0.2s, border-bottom 0.2s;
    cursor: pointer;
    border-bottom: 2px solid var(--border-color-secondary);
}
.top-level-accordion-header:hover {
    background-color: var(--bg-secondary);
}
/* Highlight top-level headers when their content is visible */
.top-level-accordion-header:not(.hidden) + .top-level-accordion-content:not(.hidden),
.top-level-accordion-header[aria-expanded="true"], /* Future proofing */
.top-level-accordion-section:has(.top-level-accordion-content:not(.hidden)) .top-level-accordion-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--focus-ring-color);
}

.top-level-accordion-content {
    background-color: var(--bg-main);
}

/* Collapsible Section Headers (Sub-level) */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background-color: transparent;
    border-bottom: 2px solid var(--border-color-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.collapsible-header:hover {
    background-color: var(--bg-secondary);
}

.collapsible-section.open .collapsible-header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--focus-ring-color);
}

/* ================================================================================= */
/* C-6.0: UTILITY CLASSES                                                            */
/* ================================================================================= */

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }

.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-full { grid-column: 1 / -1; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }
.z-1050 { z-index: 1050; }
.z-1100 { z-index: 1100; }
.z-1200 { z-index: 1200; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pl-4 { padding-left: 1rem; }
.pr-4 { padding-right: 1rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.margin-b-1 { margin-bottom: 0.25rem; }
.margin-b-1-5 { margin-bottom: 0.375rem; }
.margin-t-1-5 { margin-top: 0.375rem; }
.margin-b-2 { margin-bottom: 0.5rem; }
.margin-b-2-5 { margin-bottom: 0.625rem; }
.margin-b-3 { margin-bottom: 0.75rem; }
.margin-b-4 { margin-bottom: 1rem; }
.margin-b-6 { margin-bottom: 1.5rem; }
.margin-b-8 { margin-bottom: 2rem; }
.margin-l-4 { margin-left: 1rem; }
.margin-r-1 { margin-right: 0.25rem; }
.margin-r-2 { margin-right: 0.5rem; }
.margin-r-4 { margin-right: 1rem; }
.margin-t-1 { margin-top: 0.25rem; }
.margin-t-2 { margin-top: 0.5rem; }
.margin-t-3 { margin-top: 0.75rem; }
.margin-t-4 { margin-top: 1rem; }
.margin-y-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.padding-1 { padding: 0.25rem; }
.padding-1 { padding: 0.25rem; }
.padding-1-5 { padding: 0.375rem; }
.padding-2 { padding: 0.5rem; }
.padding-3 { padding: 0.75rem; }
.padding-4 { padding: 1rem; }
.padding-b-2 { padding-bottom: 0.5rem; }
.padding-l-4 { padding-left: 1rem; }
.padding-r-4 { padding-right: 1rem; }
.padding-t-2 { padding-top: 0.5rem; }
.padding-t-4 { padding-top: 1rem; }
.padding-y-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.padding-y-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.padding-y-4 { padding-top: 1rem; padding-bottom: 1rem; }

.flex-between-center { display: flex; justify-content: space-between; align-items: center; }
.flex-items-center { display: flex; align-items: center; }
.inline-flex-items-center { display: inline-flex; align-items: center; }
.flex-items-baseline { display: flex; align-items: baseline; }
.flex-items-end { display: flex; align-items: flex-end; }
.flex-items-start { display: flex; align-items: flex-start; }
.flex-justify-start { display: flex; justify-content: flex-start; }
.flex-justify-end { display: flex; justify-content: flex-end; }
.flex-justify-between { display: flex; justify-content: space-between; }
.flex-justify-center { display: flex; justify-content: center; }
.flex-center-wrap { display: flex; justify-content: center; flex-wrap: wrap; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Sizing */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.w-6 { width: 1.5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-h-24 { max-height: 6rem; }
.max-h-48 { max-height: 12rem; }
.max-h-60 { max-height: 15rem; }
.max-h-80 { max-height: 20rem; }
.max-h-96 { max-height: 24rem; }
.max-h-screen-80 { max-height: 80vh; }
.min-h-20 { min-height: 5rem; }
.min-h-12 { min-height: 3rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-2xs { font-size: 0.65rem; line-height: 0.85rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.italic { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Colors & Borders */
.text-primary { color: var(--text-color-primary); }
.text-secondary { color: var(--text-color-secondary); }
.text-tertiary { color: var(--text-color-tertiary); }
.text-success { color: #10b981; }
.text-danger, .text-deny { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-accent { color: var(--focus-ring-color); }
.text-hint { color: var(--text-color-dark-quaternary); }
.text-black { color: #000000; }
.text-white { color: #ffffff; }

.bg-base-100 { background-color: var(--bg-main); }
.bg-base-200, .bg-secondary { background-color: var(--bg-secondary); }
.bg-base-300, .bg-tertiary { background-color: var(--bg-tertiary, #374151); }
.bg-transparent { background-color: transparent; }

.border { border: 1px solid var(--border-color-primary); }
.border-bottom { border-bottom: 1px solid var(--border-color-secondary); }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-deny { border-color: #ef4444; }
.border-none { border-style: none; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Custom Sizing Utilities */
.min-w-32 { min-width: 8rem; }
.min-w-24 { min-width: 6rem; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.border-2 { border-width: 2px; }
.border-accent { border-color: var(--focus-ring-color); }

.border-b { border-bottom: 1px solid var(--border-color-primary); }
.border-t { border-top: 1px solid var(--border-color-primary); }

/* Transitions */
.transition-all { transition: all 0.15s ease-in-out; }
.transition-opacity { transition: opacity 0.15s ease-in-out; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Other */
.cursor-pointer { cursor: pointer; }
.hover-underline:hover { text-decoration: underline; }
.hover-bg-main:hover { background-color: var(--bg-main); }
.hover-bg-secondary:hover { background-color: var(--bg-secondary); }
.hover-bg-tertiary:hover { background-color: var(--bg-tertiary); }
.hover-text-deny:hover { color: #ef4444; }
.hover-text-white:hover { color: #ffffff; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ================================================================================= */
/* C-7.0: UNIVERSAL BADGE SYSTEM                                                    */
/* ================================================================================= */
.universal-badge {
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.badge-style-plain {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
    text-shadow: none !important;
}
.badge-icon-grid {
    display: inline-grid;
    gap: 1px;
    line-height: 1;
    align-items: center;
    justify-items: center;
}
.grid-item-2x2 { font-size: 0.55rem; text-align: center; }
.grid-item-3x3 { font-size: 0.45rem; text-align: center; }
.badge-icon-img {
    width: 1.5em;
    height: 1.5em;
    object-fit: cover;
    border-radius: 50%;
}
