/* Base styles and reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; transition: background-color 0.3s ease, color 0.3s ease; } body.dark { color: hsl(0, 0%, 98%); } .container { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; } /* Card styles */ .card { width: 350px; border-radius: calc(0.5rem + 4px); transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; } body.dark .card { background-color: #09090b; border: 1px solid hsl(240, 3.7%, 15.9%); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); } .card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7); } .card-header { padding: 1.5rem 1.5rem 0 1.5rem; } .card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.15rem; } .card-description { font-size: 0.875rem; line-height: 1.5; transition: color 0.3s ease; } body.dark .card-description { color: hsl(240, 5%, 64.9%); } .card-content { padding: 1.5rem; } .card-footer { display: flex; justify-content: space-between; padding: 0 1.5rem 1.5rem 1.5rem; } /* Form styles */ .grid { gap: 0.75rem; display: grid; } .flex-col { display: flex; flex-direction: column; } .space-y-1\.5 > * + * { margin-top: 0.175rem; } .label { font-size: 0.875rem; font-weight: 500; transition: color 0.3s ease; } .input { display: flex; height: 2.5rem; width: 100%; border-radius: 0.375rem; padding: 0 0.75rem; font-size: 0.875rem; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; } body.dark .input { background-color: #09090b; border: 1px solid hsl(240, 3.7%, 15.9%); color: hsl(0, 0%, 98%); } body.dark .input:focus { outline: none; border-color: hsl(240, 5%, 64.9%); box-shadow: 0 0 0 2px rgba(142, 142, 160, 0.3); } body.dark .input::placeholder { color: hsl(240, 5%, 44.9%); } /* Select styles */ .select-wrapper { position: relative; } .select-trigger { display: flex; height: 2.5rem; width: 100%; align-items: center; justify-content: space-between; border-radius: 0.375rem; padding: 0 0.75rem; font-size: 0.875rem; cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; } body.dark .select-trigger { background-color: #09090b; border: 1px solid hsl(240, 3.7%, 15.9%); color: hsl(0, 0%, 98%); } body.dark .select-trigger:focus { outline: none; border-color: hsl(240, 5%, 64.9%); box-shadow: 0 0 0 2px rgba(142, 142, 160, 0.3); } .select-trigger.error { border-color: hsl(0, 72%, 51%); } .select-value { color: hsl(240, 5%, 44.9%); } .select-content { position: absolute; top: calc(100% + 0.5rem); left: 0; width: 100%; border-radius: 0.375rem; z-index: 10; overflow: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease; } body.dark .select-content { background-color: hsl(240, 10%, 7%); border: 1px solid hsl(240, 3.7%, 15.9%); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); } .select-wrapper.open .select-content { opacity: 1; transform: translateY(0); pointer-events: auto; } .select-item { padding: 0.5rem 0.75rem; font-size: 0.875rem; cursor: pointer; transition: background-color 0.2s ease; } body.dark .select-item:hover { background-color: hsl(240, 3.7%, 15.9%); } .select-chevron { transition: transform 0.2s ease; } .select-wrapper.open .select-chevron { transform: rotate(180deg); } /* Button styles */ .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; height: 2.5rem; padding: 0 1rem; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; cursor: pointer; } body.dark .button-primary { background-color: hsl(0, 0%, 98%); color: #09090b; border: 1px solid hsl(0, 0%, 98%); } body.dark .button-primary:hover { background-color: hsl(0, 0%, 90%); border-color: hsl(0, 0%, 90%); } body.dark .button-outline { background-color: transparent; color: hsl(0, 0%, 98%); border: 1px solid hsl(240, 3.7%, 15.9%); } body.dark .button-outline:hover { background-color: hsl(240, 3.7%, 15.9%); border-color: hsl(240, 3.7%, 15.9%); } /* Checkbox styles */ .checkbox-container { display: flex; align-items: center; } .checkbox-wrapper { display: flex; align-items: center; } .checkbox { appearance: none; -webkit-appearance: none; display: flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border-radius: 0.25rem; border: 1px solid hsl(240, 3.7%, 15.9%); background-color: hsl(240, 10%, 3.9%); margin-right: 0.5rem; cursor: pointer; position: relative; transition: background-color 0.2s ease, border-color 0.2s ease; } .checkbox:focus { outline: none; border-color: hsl(240, 5%, 64.9%); box-shadow: 0 0 0 2px rgba(142, 142, 160, 0.3); } .checkbox:checked { background-color: hsl(0, 0%, 98%); border-color: hsl(0, 0%, 98%); } .checkbox:checked::after { content: ''; position: absolute; width: 0.3rem; height: 0.5rem; border: solid hsl(240, 10%, 3.9%); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); } .checkbox-label { font-size: 0.875rem; color: hsl(0, 0%, 98%); user-select: none; } /* New Dashboard Card */ .dashboard-card { width: 35rem; border-radius: 0.75rem; background-color: #09090b; border: 1px solid hsl(240, 3.7%, 15.9%); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); overflow: hidden; } .card-header { padding: 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid hsl(240, 3.7%, 15.9%); } .user-info { display: flex; align-items: center; gap: 0.75rem; } .avatar { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background-color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; color: hsl(240, 10%, 3.9%); } .user-details { display: flex; flex-direction: column; } .username { font-weight: 600; font-size: 1rem; } .user-role { font-size: 0.875rem; color: hsl(240, 5%, 64.9%); } .header-actions { display: flex; gap: 0.5rem; } .icon-button { width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; display: flex; align-items: center; justify-content: center; background-color: transparent; border: none; color: hsl(240, 5%, 64.9%); cursor: pointer; transition: background-color 0.2s; } .icon-button:hover { background-color: hsl(240, 3.7%, 15.9%); color: hsl(0, 0%, 98%); } .role-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: linear-gradient(135deg, rgba(54, 134, 226, 0.7), rgba(37, 102, 156, 0.5)); border: 3px solid linear-gradient(135deg, rgba(54, 186, 226, 0.7), rgba(37, 128, 156, 0.5)); border-radius: 0.375rem; margin: 1rem; } .badge-icon { width: 1.25rem; height: 1.25rem; color: hsl(0, 0%, 98%); } .stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0 1rem; } .stat-card { padding: 0.75rem; background-color: #09090b; border: 1px solid hsl(240, 3.7%, 15.9%); border-radius: 0.5rem; display: flex; align-items: center; gap: 0.75rem; } .stat-icon { width: 1.5rem; height: 1.5rem; color: hsl(240, 5%, 64.9%); } .stat-content { display: flex; flex-direction: column; } .stat-label { font-size: 0.75rem; color: hsl(240, 5%, 64.9%); } .stat-value { font-weight: 600; font-size: 0.875rem; } .chart-container { padding: 1rem; margin-top: 0.5rem; } .chart { height: 200px; position: relative; padding-top: 1rem; } .chart-grid { display: flex; flex-direction: column; justify-content: space-between; height: 100%; position: relative; } .grid-line { width: 100%; height: 1px; background-color: hsl(240, 3.7%, 15.9%); position: relative; } .grid-line::before { content: attr(data-label); position: absolute; left: 0; top: -0.75rem; font-size: 0.75rem; color: hsl(240, 5%, 64.9%); } .chart-bars { display: flex; justify-content: space-between; align-items: flex-end; height: 100%; position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 1.5rem; } .bar { width: 1.5rem; background-color: hsl(142, 76%, 36%); border-radius: 0.25rem 0.25rem 0 0; position: relative; } .bar::after { content: attr(data-label); position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: hsl(240, 5%, 64.9%); white-space: nowrap; } .bar:hover { opacity: 0.8; } .patrol-status { display: flex; flex-direction: column; padding: 0 1rem 1rem; } .status-label { font-size: 0.75rem; color: hsl(240, 5%, 64.9%); margin-bottom: 0.25rem; } .status-value { font-weight: 600; font-size: 0.875rem; color: hsl(142, 76%, 36%); }