/* Modern License Manager Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--gray-900);
    color: var(--gray-100);
}


/* Color Variables */

:root {
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
}

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

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

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

.text-primary-400 {
    color: #60a5fa;
}

.text-primary-500 {
    color: var(--primary-500);
}

.text-primary-300 {
    color: #93c5fd;
}

.hover\:bg-primary-700:hover {
    background-color: var(--primary-700);
}

.hover\:text-primary-300:hover {
    color: var(--primary-300);
}


/* Utility Classes */

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.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));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.min-w-full {
    min-width: 100%;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-mono {
    font-family: ui-monospace, monospace;
}

.text-white {
    color: #ffffff;
}

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

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

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

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

.text-red-500 {
    color: #ef4444;
}

.text-red-400 {
    color: #f87171;
}

.text-green-200 {
    color: #bbf7d0;
}

.text-green-800 {
    color: #166534;
}

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

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

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

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

.bg-green-600 {
    background-color: #16a34a;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-purple-600 {
    background-color: #9333ea;
}

.bg-red-900 {
    background-color: #7f1d1d;
}

.bg-green-900 {
    background-color: #14532d;
}

.border {
    border-width: 1px;
}

.border-gray-700 {
    border-color: var(--gray-700);
}

.border-gray-800 {
    border-color: var(--gray-800);
}

.border-red-700 {
    border-color: #b91c1c;
}

.border-green-700 {
    border-color: #15803d;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-t-md {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.rounded-b-md {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

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

.overflow-x-auto {
    overflow-x: auto;
}

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

.overflow-hidden {
    overflow: hidden;
}


/* Layout helpers */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

.metric {
    display: flex;
    align-items: center;
    padding: 1.25rem;
}


/* Header spacing */

header .text-xl {
    letter-spacing: .2px;
}


/* Cards tighter margins similar to screenshot */

.space-y-8>*+* {
    margin-top: 1.25rem;
}

.gap-8 {
    gap: 1.5rem;
}


/* Additional dashboard polish */

.pt-4 {
    padding-top: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.metric .icon {
    padding: .75rem;
    border-radius: .5rem;
}

.metric .label {
    color: var(--gray-400);
    font-size: .875rem;
}

.metric .value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.whitespace-nowrap {
    white-space: nowrap;
}

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

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

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

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.divide-y>*+* {
    border-top-width: 1px;
}

.divide-gray-700>*+* {
    border-top-color: var(--gray-700);
}

.divide-gray-800>*+* {
    border-top-color: var(--gray-800);
}

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

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

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-red-400:hover {
    color: #f87171;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-primary-500:focus {
    --tw-ring-color: var(--primary-500);
}

.focus\:border-primary-500:focus {
    border-color: var(--primary-500);
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.inline-flex {
    display: inline-flex;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.leading-5 {
    line-height: 1.25rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}


/* Status badges */

.bg-green-200 {
    background-color: #bbf7d0;
}

.bg-yellow-200 {
    background-color: #fef08a;
}

.bg-red-200 {
    background-color: #fecaca;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.text-yellow-800 {
    color: #854d0e;
}


/* Table improvements */

table {
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    font-weight: 600;
    letter-spacing: 0.025em;
}

table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}


/* Status badge improvements */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.25rem;
}


/* License key display */

.font-mono {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
}


/* Light Mode Styles */

body.light-mode {
    background-color: #f9fafb;
    color: #111827;
}

body.light-mode .bg-gray-900 {
    background-color: #ffffff;
}

body.light-mode .bg-gray-800 {
    background-color: #f9fafb;
}

body.light-mode .bg-gray-700 {
    background-color: #e5e7eb;
}

body.light-mode .bg-gray-700 th {
    background-color: #e5e7eb;
    color: #111827;
}

body.light-mode .text-white {
    color: #111827;
}

body.light-mode .text-gray-100 {
    color: #111827;
}

body.light-mode .text-gray-300 {
    color: #374151;
}

body.light-mode .text-gray-400 {
    color: #6b7280;
}

body.light-mode .border-gray-700 {
    border-color: #d1d5db;
}

body.light-mode .border-gray-800 {
    border-color: #e5e7eb;
}

body.light-mode .divide-gray-700>* {
    border-color: #d1d5db;
}

body.light-mode .bg-primary-600 {
    background-color: #2563eb;
}

body.light-mode .hover\:bg-gray-700:hover {
    background-color: #e5e7eb;
}

body.light-mode .hover\:bg-gray-750:hover {
    background-color: #f3f4f6;
}

body.light-mode .bg-gray-800 tbody {
    background-color: #ffffff;
}

body.light-mode .bg-gray-800 thead {
    background-color: #e5e7eb;
}

body.light-mode .bg-gray-800 thead th {
    color: #111827;
}

body.light-mode .bg-gray-800 tbody tr {
    background-color: #ffffff;
}

body.light-mode .bg-gray-800 tbody tr:hover {
    background-color: #f9fafb;
}

body.light-mode .bg-gray-800 tbody td {
    color: #111827;
}

body.light-mode .bg-gray-800 tbody .text-gray-300 {
    color: #374151;
}

body.light-mode .bg-gray-800 tbody .text-gray-400 {
    color: #6b7280;
}

body.light-mode aside {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

body.light-mode header {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

body.light-mode .bg-gray-900 {
    background-color: #ffffff;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
}


/* Responsive */

@media (min-width: 640px) {
    .sm\:p-6 {
        padding: 1.5rem;
    }
    .sm\:text-sm {
        font-size: 0.875rem;
    }
}


/* Sidebar improvements */

aside {
    background-color: #1f2937 !important;
    border-right: 1px solid #374151 !important;
}

aside nav a {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

aside nav a:hover {
    background-color: #374151 !important;
    color: #ffffff !important;
}

aside nav a.bg-primary-600 {
    background-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

aside nav a svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
}

aside nav a span {
    font-weight: 500 !important;
}

.bg-gray-850 {
    background-color: #1a1f2e;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-200 {
    transition-duration: 200ms;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.tracking-tight {
    letter-spacing: -0.025em;
}


/* Light mode sidebar */

body.light-mode aside {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

body.light-mode .bg-gray-850 {
    background-color: #f9fafb;
}

body.light-mode aside nav a {
    color: #374151;
}

body.light-mode aside nav a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

body.light-mode aside nav a.bg-primary-600 {
    background-color: #2563eb;
    color: #ffffff;
}

body.light-mode aside .border-gray-700 {
    border-color: #e5e7eb;
}

@media (min-width: 768px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}