/* Viora Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 100%;
}

header h1 {
    font-size: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

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

nav a {
    color: #667eea;
    text-decoration: none;
    margin-left: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

nav a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Top Navigation Menu */
.top-nav {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 2rem;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

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

.top-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu li {
    position: relative;
}

.top-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.top-menu a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #1e1b4b;
}

.top-menu a.active {
    background: rgba(102, 126, 234, 0.12);
    border-bottom: 2px solid #667eea;
    color: #1e1b4b;
}

.top-menu-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #475569;
    background: transparent;
    border-radius: 0;
    margin-left: 0;
}

.user-info-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.user-info-text h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #5568d3;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-outline-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #64748b;
}

.btn-outline-secondary:hover {
    background: #64748b;
    color: white;
}

.btn-secondary {
    background: #94a3b8;
}

.btn-secondary:hover {
    background: #64748b;
}

.btn-warning {
    background-color: #f59e0b;
    color: #212529;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: #f43f5e;
    color: white;
}

.btn-danger:hover {
    background-color: #e11d48;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

button.btn, a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* Remove card padding when structured children are present */
.card:has(> .card-body),
.card:has(> .card-header) {
    padding: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-text {
    margin-bottom: 0.5rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

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

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 8px 8px 0 0;
}

.card-header.bg-primary {
    background-color: #667eea;
    color: white;
}

.card-header.bg-success {
    background-color: #10b981;
    color: white;
}

.card-header.bg-warning {
    background-color: #f59e0b;
    color: #212529;
}

.card-header.bg-info {
    background-color: #8b5cf6;
    color: white;
}

.card-header h5 {
    margin: 0;
}

/* Messages */
.messages {
    list-style: none;
    margin-bottom: 1rem;
}

.messages li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.messages .error {
    background: #fee2e2;
    color: #9f1239;
    border-color: #fecaca;
}

.messages .success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Forms */
form input, form textarea, form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    font-family: inherit;
}

form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    accent-color: #667eea;
}

form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

form input[type="checkbox"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #64748b;
    content: "/";
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-borderless th,
.table-borderless td {
    border: 0;
    padding: 0.5rem 0;
}

.table-borderless th {
    font-weight: 600;
    color: #555;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge.bg-success {
    background-color: #10b981;
}

.badge.bg-warning {
    background-color: #f59e0b;
}

.badge.bg-danger {
    background-color: #f43f5e;
}

.badge.bg-secondary {
    background-color: #64748b;
}

.badge.bg-info {
    background-color: #8b5cf6;
}

.badge.bg-primary {
    background-color: #007bff;
}

.badge.text-dark {
    color: #212529 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-muted {
    color: #64748b !important;
}

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

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

.text-white {
    color: white !important;
}

code {
    font-size: 87.5%;
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Row gap utilities */
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

/* Row-cols utilities */
.row-cols-1 > * { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .row-cols-md-2 > * { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .row-cols-lg-3 > * { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* Form Controls (Bootstrap-compatible) */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control,
form .form-control,
form .form-select {
    margin-bottom: 0;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }

.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }

/* Display & Sizing Utilities */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875em; }
.text-decoration-none { text-decoration: none !important; }
.text-dark { color: #212529 !important; }
.text-primary { color: #667eea !important; }
.bg-transparent { background-color: transparent !important; }

/* Footer Styles */
footer {
    position: relative;
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, rgba(102, 126, 234, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 70% at 85% 30%, rgba(236, 72, 153, 0.25), transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(167, 139, 250, 0.30), transparent 65%),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(56, 189, 248, 0.22), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    color: #475569;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(102, 126, 234, 0.6) 25%,
        rgba(236, 72, 153, 0.6) 50%,
        rgba(167, 139, 250, 0.6) 75%,
        transparent 100%);
    pointer-events: none;
}

footer::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.3) 35%, transparent 65%);
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #64748b;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #667eea;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    margin: 0;
    color: #1e293b;
}

/* Back/Cancel Button */
.btn-back {
    padding: 0.5rem 1rem;
    background: #94a3b8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-back:hover {
    background: #64748b;
}

/* Alert / Banner */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert p {
    margin: 0;
}

.alert-info {
    background: #e8f4f8;
    border-color: #667eea;
    color: #1e293b;
}

.alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-note {
    background: #ede9fe;
    border-color: #8b5cf6;
    color: #5b21b6;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions-bordered {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.form-actions-stretch {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions-stretch > * {
    flex: 1;
    text-align: center;
}

/* Section Heading */
.section-heading {
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Form Row (2-column grid) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.stat-card-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead tr {
    background: #334155;
    color: white;
}

.data-table th {
    padding: 0.8rem;
    text-align: center;
    border-bottom: 2px solid #1e293b;
    white-space: nowrap;
}

.data-table td {
    padding: 0.8rem;
    vertical-align: middle;
}

.data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr.notes-row {
    border-bottom: 1px solid #f1f5f9;
    background: #f8f9fa;
}

.data-table tbody tr.notes-row td {
    font-size: 0.85rem;
    color: #64748b;
}

.data-table tfoot tr {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table tfoot td {
    padding: 0.8rem;
    border-top: 2px solid #334155;
}

/* Info Bar */
.info-bar {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.info-bar p {
    margin: 0;
    color: #64748b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.empty-state-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.empty-state .sub-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

/* Summary Bar */
.summary-bar {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.summary-bar p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Guide Card */
.guide-card {
    background: #f8f9fa;
}

.guide-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.guide-card ul {
    color: #495057;
    line-height: 1.8;
}

/* Detail Info Grid */
.detail-grid {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 4px;
}

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

.detail-label {
    margin: 0 0 0.3rem 0;
    color: #64748b;
    font-size: 0.85rem;
}

.detail-value {
    margin: 0;
    color: #1e293b;
    font-weight: 500;
}

/* Company Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.company-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(52,152,219,0.2);
}

.company-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.company-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.company-card-info {
    flex: 1;
}

.company-card-info h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.company-card-info .sub-text {
    margin: 0.25rem 0 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.company-card-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.company-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1rem;
}

.company-card-footer p {
    margin: 0.5rem 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Inline Action Buttons (in tables) */
.table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-table {
    padding: 0.4rem 0.8rem;
    min-width: 52px;
    box-sizing: border-box;
    text-align: center;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
}

.btn-table-edit {
    background: #667eea;
}

.btn-table-edit:hover {
    background: #5568d3;
}

.btn-table-delete {
    background: #f43f5e;
}

.btn-table-delete:hover {
    background: #c0392b;
}

.btn-table-view {
    background: #10b981;
}

.btn-table-view:hover {
    background: #059669;
}

/* CTA Button */
.btn-cta {
    padding: 1rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-cta:hover {
    background: #5568d3;
}

.btn-cta-success {
    background: #10b981;
}

.btn-cta-success:hover {
    background: #059669;
}

/* Section Container (form sections with border) */
.section-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
}

.section-container .section-title {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    font-size: 1.1rem;
}

/* Section Spacer */
.section {
    margin-top: 2rem;
}

.section-lg {
    margin-top: 3rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0;
    color: #1e293b;
}

/* Table Wrapper */
.table-responsive {
    overflow-x: auto;
}

/* Inline form (e.g. delete buttons) */
.inline-form {
    display: inline;
}

/* Notes Panel */
.notes-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.notes-panel-warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.notes-panel-warning p {
    color: #92400e;
}

.notes-panel-warning .notes-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.3rem 0;
}

.notes-panel-info {
    background: #ede9fe;
    border-color: #8b5cf6;
}

.notes-panel-info p {
    color: #5b21b6;
}

.notes-panel-info .notes-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.3rem 0;
}

.notes-panel p:last-child {
    margin: 0;
}

/* Text utilities */
.text-subdued {
    color: #64748b;
}

.text-subdued-sm {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Disabled Input */
.input-disabled {
    background-color: #f5f5f5 !important;
    color: #777 !important;
}

.help-text {
    color: #777;
    font-size: 0.85rem;
}

/* Required field marker */
.required {
    color: #f43f5e;
}

/* Profile Company Tags */
.company-tags {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.company-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Hint Card */
.hint-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.hint-card ul {
    color: #64748b;
    line-height: 1.8;
}

/* Visit CTA */
.visit-cta {
    text-align: center;
    margin: 2rem 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content-box {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header-danger {
    background: #f43f5e;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-danger h5 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 1.5rem;
}

/* Listing Card Hover */
.listing-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Large Empty Icon */
.empty-icon-lg {
    font-size: 4rem;
    color: #ccc;
}

/* Payment-related inline form */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.payment-input {
    width: 100px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    text-align: right;
}

.payment-btn {
    width: 100px;
    padding: 0.4rem 0.6rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
}

.payment-btn:hover {
    background: #059669;
}

.outstanding-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.outstanding-paid {
    color: #10b981;
    font-weight: 600;
    font-size: 1rem;
}

.outstanding-unpaid {
    color: #f43f5e;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .top-menu {
        flex-wrap: wrap;
    }
    
    .top-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-info {
        margin-left: 0.5rem;
        padding: 0.5rem;
    }
    
    .user-info-text h4 {
        font-size: 0.8rem;
    }
    
    .user-info-text p {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .top-nav-left {
        flex-direction: column;
        gap: 0;
    }
    
    .top-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .top-menu li {
        border-bottom: 1px solid #4a5f7f;
    }
    
    .top-menu a {
        padding: 0.75rem 1rem;
    }
    
    .top-nav-right {
        padding: 0.75rem 1rem;
        background: #1e293b;
    }
    
    .user-info {
        margin-left: 0;
    }
    
    .row {
        margin-right: 0;
        margin-left: 0;
    }
    
    .row > * {
        padding-right: 0;
        padding-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==============================================
   Prescription Form Styles (Rx)
   ============================================== */

/* Section wrappers */
.rx-section {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ccc;
}

.rx-section-glasses {
    background: #e3f2fd;
    border-left-color: #2196F3;
}

.rx-section-lens {
    background: #f3e5f5;
    border-left-color: #9c27b0;
}

.rx-title {
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.rx-shortcut {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.rx-loaded-info {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: normal;
    float: right;
}

/* Prescription grids */
.rx-grid {
    display: grid;
    gap: 0.5rem;
    align-items: stretch;
}

.rx-grid-glasses {
    grid-template-columns: 80px repeat(13, 1fr);
}

.rx-grid-lens {
    grid-template-columns: 80px repeat(7, 1fr);
}

/* Header cells */
.rx-header-cell {
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.rx-header-glasses {
    background: #bbdefb;
}

.rx-header-lens {
    background: #e1bee7;
}

/* Row labels */
.rx-label-od {
    font-weight: 600;
    text-align: center;
    background: #fef3c7;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rx-label-os {
    font-weight: 600;
    text-align: center;
    background: #ede9fe;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prescription input */
.rx-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==============================================
   Form Utility Classes
   ============================================== */

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-label-sm {
    display: block;
    margin-bottom: 0.3rem;
    color: #1e293b;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-input-sm {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-input-readonly {
    background: #f5f5f5;
    color: #1e293b;
    font-weight: 600;
}

.form-input-outstanding {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

/* ==============================================
   Purchase Section Styles
   ============================================== */

.purchase-section {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4caf50;
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.purchase-header-end {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.btn-add-item {
    padding: 0.5rem 1rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-add-item:hover {
    background: #43a047;
}

.purchase-item-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c8e6c9;
}

.purchase-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.purchase-grid-detail {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-remove-item {
    padding: 0.6rem 1rem;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: none;
}

.btn-remove-item:hover {
    background: #e53935;
}

/* Exam info section */
.exam-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
}

.exam-title {
    margin: 0 0 1rem 0;
    color: #1e293b;
}
