/* ===== LEOPARD LICENSING - THEME STYLES ===== */

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base styles matching LinkToFile */
html, body {
    background-color: #000;
    color: #c0c0c0;
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1 0 auto;
    padding: 0.5rem 2rem 1rem;
}

a {
    color: #00ff00;
    text-decoration: none;
}

a:hover {
    color: #00cc00;
    text-decoration: underline;
}

/* Brand Header - Matching LinkToFile */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #000;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.brand-leopard {
    color: #00ff00;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-app {
    color: #fff;
    font-weight: 400;
    font-size: 1.25rem;
}

/* Navigation */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background-color: #00ff00;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon-link {
    color: #c0c0c0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-icon-link:hover {
    color: #00ff00;
    background-color: #111;
}

.nav-icon {
    display: flex;
    align-items: center;
}

.nav-label {
    font-size: 0.95rem;
}

.nav-login-btn {
    background-color: #00ff00;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-login-btn:hover {
    background-color: #00cc00;
    text-decoration: none;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-caret {
    font-size: 0.7rem;
    margin-left: 0.15rem;
    color: #888;
}

/* Profile Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #00ff00;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-profile-btn:hover {
    background-color: #111;
}

.nav-username {
    font-size: 0.9rem;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 170px;
    box-shadow: 0 4px 6px rgba(0, 255, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown-menu-open {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    color: #888;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav-dropdown-item + .nav-dropdown-item {
    border-top: 1px solid #1c1c1c;
}

.nav-dropdown-item:hover {
    background-color: #161616;
    color: #00ff00;
    border-left-color: #00ff00;
    text-decoration: none;
}

/* Footer */
.app-footer {
    background-color: #111;
    border-top: 1px solid #333;
    padding: 0.4rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    line-height: 1.2;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.footer-text {
    color: #888;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #888;
    font-size: 0.8rem;
}

.footer-link:hover {
    color: #00ff00;
}

.footer-copyright {
    color: #666;
    font-size: 0.75rem;
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #c0c0c0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    background-color: #000;
    border: 1px solid #333;
    color: #c0c0c0;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #00ff00;
}

.form-input::placeholder {
    color: #666;
}

.validation-message {
    color: #ff0000;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    background-color: #00cc00;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #333;
    color: #c0c0c0;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background-color: #444;
    border-color: #00ff00;
    color: #00ff00;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-success {
    background-color: #00ff00;
    color: #000;
    border: none;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.75rem;
        min-height: calc(100vh - 120px);
    }

    .auth-card {
        padding: 1.25rem 1rem;
        max-width: 100%;
        border-radius: 6px;
    }

    .brand-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .auth-form {
        gap: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-input {
        font-size: 0.85rem;
        padding: 0.6rem;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }
}

.btn-warning {
    background-color: #ffff00;
    color: #000;
    border: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert-error {
    background-color: #330000;
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.link-primary {
    color: #00ff00;
    font-weight: 500;
}

.link-primary:hover {
    color: #00cc00;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 1rem;
}

.dashboard-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #888;
    font-size: 1.1rem;
}

.section-title {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* Stats Grid (Admin) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
    border-color: #00ff00;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    color: #00ff00;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

/* Action Grid (Admin) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
    color: #c0c0c0;
}

.action-card:hover {
    border-color: #00ff00;
    transform: translateY(-2px);
    text-decoration: none;
}

.action-icon {
    font-size: 2rem;
}

.action-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-description {
    color: #888;
    font-size: 0.9rem;
}

/* Company & License Cards */
.company-grid, .license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.company-card, .license-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-name {
    color: #00ff00;
    font-size: 1.25rem;
    margin: 0;
}

.company-info {
    color: #888;
    margin: 0;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-application {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.license-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== ADMIN PAGES STYLES ===== */

/* Admin Page Container */
.admin-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.admin-title {
    color: #00ff00;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Search Bar */
.search-bar {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background-color: #111;
    border: 1px solid #333;
    color: #c0c0c0;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #00ff00;
}

/* Data Table */
.data-table-container {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #1a1a1a;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: #00ff00;
    font-weight: 600;
    border-bottom: 2px solid #333;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #222;
    color: #c0c0c0;
}

.data-table tbody tr:hover {
    background-color: #1a1a1a;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.actions-column {
    width: 150px;
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #333;
    color: #c0c0c0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-admin {
    background-color: #ff0000;
    color: #fff;
}

/* Buttons */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    color: #c0c0c0;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #00ff00;
}

.btn-icon.btn-danger:hover {
    color: #ff0000;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.1);
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal-content.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    color: #00ff00;
    font-size: 1.5rem;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: #c0c0c0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.btn-close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #333;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c0c0c0;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: #111;
    border: 1px solid #333;
    color: #c0c0c0;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #00ff00;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 1rem;
}

.form-group.col-6 {
    grid-column: span 1;
}

.form-group.col-8 {
    grid-column: span 2;
}

.form-group.col-4 {
    grid-column: span 1;
}

.required {
    color: #ff0000;
}

.section-subtitle {
    color: #00ff00;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* User Company Linker Component */
.user-company-linker {
    display: grid;
    gap: 2rem;
}

.linker-section {
    background-color: #111;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 4px;
}

.linker-section h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.linked-users-list,
.available-users-list {
    display: grid;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.linked-item,
.available-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #222;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.linked-item:hover,
.available-item:hover {
    background-color: #222;
}

.linked-item-info,
.available-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-muted {
    color: #777;
    font-size: 0.9rem;
}

.text-warning {
    color: #ffff00;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

/* No Data / Loading States */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #777;
    font-size: 1.1rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #00ff00;
    font-size: 1.25rem;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-page-container {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.col-4,
    .form-group.col-6,
    .form-group.col-8 {
        grid-column: span 1;
    }

    .data-table-container {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .modal-content {
        width: 95%;
    }
}

/* ===== LICENSE GENERATION PAGE ===== */

.license-gen-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.license-gen-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1.5rem;
}

.form-section-title {
    color: #00ff00;
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #c0c0c0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff00;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* License Preview Panel */
.license-gen-preview {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.preview-panel {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1.5rem;
}

.preview-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #222;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    color: #777;
    font-weight: 500;
}

.preview-value {
    color: #c0c0c0;
    word-break: break-word;
}

.preview-code {
    font-family: monospace;
    color: #00ff00;
    font-size: 0.9rem;
}

/* Info Panel */
.info-panel {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.info-panel h4 {
    color: #00ff00;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    color: #777;
    font-size: 0.85rem;
}

.info-value {
    color: #c0c0c0;
    font-weight: 500;
}

.text-danger {
    color: #ff0000 !important;
}

/* Responsive for License Generation */
@media (max-width: 1024px) {
    .license-gen-container {
        grid-template-columns: 1fr;
    }

    .license-gen-preview {
        position: static;
    }
}


.license-status-active {
    background-color: #003300;
    color: #00ff00;
}

.license-status-expired {
    background-color: #330000;
    color: #ff0000;
}

.license-status-expiring {
    background-color: #333300;
    color: #ffff00;
}

.license-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.license-detail {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: #888;
    font-size: 0.9rem;
}

.detail-value {
    color: #c0c0c0;
    font-size: 0.9rem;
    font-family: monospace;
}

.license-actions {
    display: flex;
    gap: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background-color: #000;
        border-right: 1px solid #333;
        flex-direction: column;
        align-items: stretch;
        padding: 4.5rem 0 1rem 0;
        gap: 0;
        z-index: 200;
        overflow-y: auto;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
    }

    .nav-links-open {
        display: flex;
    }

    .nav-links .nav-icon-link,
    .nav-links .nav-profile-btn,
    .nav-links .nav-login-btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
        border-radius: 0;
    }

    .nav-links .nav-dropdown {
        width: 100%;
    }

    .nav-links .nav-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
    }

    /* On mobile, submenus are always expanded inline - no collapse/overlay */
    .nav-links .nav-dropdown-menu {
        display: block;
        position: static;
        margin-top: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-color: #0a0a0a;
        min-width: 0;
        width: 100%;
    }

    .nav-links .nav-dropdown-item {
        padding-left: 3rem;
        border-left: 3px solid transparent;
        font-size: 0.85rem;
        color: #888;
    }

    .nav-links .nav-dropdown-item:hover {
        border-left-color: #00ff00;
    }

    .nav-links .nav-caret {
        display: none;
    }

    .nav-links .nav-username {
        white-space: normal;
        word-break: break-word;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* Blazor Error UI */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 4px;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ========================================
   Installation Codes Page Styles
   ======================================== */

.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ff00;
    font-weight: 600;
    font-size: 0.9rem;
}

.company-search-input {
    margin-bottom: 0.5rem;
}

.search-with-reset {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-with-reset .form-control {
    flex: 1;
}

.btn-reset-filters {
    background-color: #222;
    color: #c0c0c0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-reset-filters:hover {
    background-color: #333;
    color: #00ff00;
    border-color: #00ff00;
}

.install-code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #111;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #333;
    color: #00ff00;
    font-size: 0.9rem;
}

.device-group-row {
    cursor: pointer;
    background-color: #161616;
}

.device-group-row:hover {
    background-color: #1f1f1f;
}

.device-detail-row td {
    background-color: #0d0d0d;
}

.btn-collapse {
    background: none;
    border: none;
    color: #00ff00;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    line-height: 1;
}

.badge-count {
    background-color: #1a1a1a;
    color: #999;
    border: 1px solid #333;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-app {
    background-color: #004400;
    color: #00ff00;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.license-count {
    font-weight: 600;
    color: #00ff00;
}

.expired-badge {
    background-color: #ff0000;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.text-success {
    color: #00ff00;
}

.text-danger {
    color: #ff0000;
}

.text-primary {
    color: #00ff00;
}

.btn-icon.btn-generate {
    background-color: #004400;
    color: #00ff00;
}

.btn-icon.btn-download {
    background-color: #003366;
    color: #66ccff;
}

.btn-icon.btn-download:hover {
    background-color: #004488;
    color: #99ddff;
}

/* ========================================
   Pagination Styles
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-page {
    background-color: #111;
    border: 1px solid #333;
    color: #00ff00;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-page:hover:not(:disabled) {
    background-color: #222;
    border-color: #00ff00;
}

.btn-page.active {
    background-color: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.results-summary {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-icon.btn-generate:hover {
    background-color: #006600;
    color: #fff;
}
