/* Modern Vermietung Application Styles */
/* Color Scheme: Neon-Orange (#FF6600), Light Blue (#87CEEB), White (#FFFFFF), Gray (#555555) */

:root {
    --primary-orange: #FF6600;
    --light-blue: #87CEEB;
    --white: #FFFFFF;
    --gray-text: #555555;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    /* Sidebar variables */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 0px;
    --top-header-height: 60px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --sidebar-text: #ecf0f1;
    --sidebar-heading: #95a5a6;
}

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

html {
    height: 100%;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--gray-text);
    line-height: 1.6;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-orange);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility: Screen Reader Only */
.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;
}

/* Accessibility: Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   APP LAYOUT - Sidebar Navigation
   ===================================================== */

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

/* Top Header Bar */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-header-height);
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8833 100%);
    box-shadow: 0 2px 8px var(--shadow);
    z-index: 1001;
    display: flex;
    align-items: center;
}

.top-header-container {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header-brand {
    display: none;
}

.top-header-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.top-header-brand .brand-icon {
    font-size: 1.5rem;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.notifications-area {
    position: relative;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.notification-badge:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--white);
}

.user-info-header .user-avatar {
    font-size: 1.2rem;
}

.user-info-header .user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.login-area .btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.login-area .btn-login:hover {
    background: #6BB6E6;
    transform: translateY(-2px);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

.sidebar-toggle .toggler-icon {
    width: 24px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: var(--top-header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--top-header-height));
    background: var(--sidebar-bg);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-speed), width var(--transition-speed);
    z-index: 1000;
    box-shadow: 2px 0 8px var(--shadow);
    -webkit-overflow-scrolling: touch;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: bold;
}

.sidebar-brand .brand-icon {
    font-size: 1.75rem;
}

.sidebar-brand .brand-text {
    letter-spacing: 0.5px;
}

.sidebar-content {
    padding: 0.5rem 0;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Sidebar Section Headings */
.sidebar-section {
    padding: 1rem 1rem 0.5rem 1rem;
}

.sidebar-heading {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sidebar-heading);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Items */
.sidebar-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all var(--transition-speed);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--white);
}

.sidebar-link.active {
    background: var(--primary-orange);
    color: var(--white);
}

.sidebar-link .nav-icon {
    font-size: 1.1rem;
    min-width: 1.5rem;
    text-align: center;
}

.sidebar-link .nav-text {
    flex: 1;
}

.sidebar-link .dropdown-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-speed);
    opacity: 0.7;
}

.sidebar-item.open .sidebar-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* Sidebar Badge */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Sidebar Dropdowns */
.sidebar-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-item.open .sidebar-dropdown {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.sidebar-dropdown .dropdown-item {
    display: block;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.sidebar-dropdown .dropdown-item:hover {
    background: var(--sidebar-hover);
    color: var(--primary-orange);
}

.sidebar-dropdown .dropdown-subheading {
    display: block;
    padding: 0.6rem 1rem 0.3rem 2.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sidebar-heading);
    margin-top: 0.5rem;
}

.sidebar-dropdown .dropdown-subheading:first-child {
    margin-top: 0;
}

/* Logout Button in Sidebar */
.sidebar-item .logout-form {
    margin: 0;
}

.sidebar-item .logout-button {
    font-family: inherit;
    font-size: 0.95rem;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--top-header-height);
    min-height: calc(100vh - var(--top-header-height));
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed);
}

.main-wrapper.expanded {
    margin-left: 0;
}

/* =====================================================
   Legacy Navbar Styles (for portal templates)
   ===================================================== */

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8833 100%);
    box-shadow: 0 4px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-speed);
}

.brand-link:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.brand-text {
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggler-icon {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    background: transparent;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
}

.logout-form {
    margin: 0;
}

.logout-button {
    font-family: inherit;
}

.login-link {
    background-color: var(--light-blue);
    color: var(--dark-gray);
    border-color: var(--light-blue);
    font-weight: 600;
}

.login-link:hover {
    background-color: #6BB6E6;
    border-color: var(--white);
    color: var(--white);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
}

.user-greeting {
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cards and Content Boxes */
.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all var(--transition-speed);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-subtitle {
    color: var(--light-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background-color: #FF7722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background-color: var(--light-blue);
    color: var(--dark-gray);
    border-color: var(--light-blue);
}

.btn-secondary:hover {
    background-color: #6BB6E6;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
}

/* Profile Page Styles */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px var(--shadow);
    }
    50% {
        box-shadow: 0 8px 24px var(--shadow-hover);
    }
}

.profile-info {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DDD;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--dark-gray);
}

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

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--gray-text) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--light-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: var(--primary-orange);
}

.footer-separator {
    color: var(--white);
}

/* =====================================================
   Responsive Design - Sidebar
   ===================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .top-header-brand {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-header-container {
        padding: 0 0.75rem;
    }
    
    .user-info-header .user-name {
        display: none;
    }
    
    .notification-badge span {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-header-right {
        gap: 0.75rem;
    }
    
    .login-area .btn-login {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   Responsive Design - Legacy Navbar (for portals)
   ===================================================== */

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .brand-link {
        font-size: 1.2rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.feature-item:hover {
    background-color: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-title {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
/* Form Sections */
.form-section {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-section legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-orange);
    padding: 0 0.5rem;
}
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 200px;
}
.form-row .form-group.flex-grow {
    flex: 2;
}
.form-group.full-width {
    width: 100%;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}
.form-hint, .section-hint {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checkbox-group label {
    margin: 0;
    cursor: pointer;
}
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 4px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark-gray);
}
.data-table tr:hover {
    background: rgba(255, 102, 0, 0.05);
}
.data-table .no-data {
    text-align: center;
    padding: 2rem;
    color: #888;
}
.actions-cell {
    white-space: nowrap;
}
.actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-bar {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-form .form-group {
    margin: 0;
}
.filter-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.filter-form select, .filter-form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-primary { background: var(--primary-orange); color: var(--white); }
.btn-primary:hover { background: #e65c00; transform: translateY(-2px); }
.btn-secondary { background: var(--light-blue); color: var(--dark-gray); }
.btn-secondary:hover { background: #72b8d8; }
.btn-danger { background: #e74c3c; color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-info { background: #3498db; color: var(--white); }
.btn-info:hover { background: #2980b9; }
.btn-outline { background: transparent; border: 2px solid var(--primary-orange); color: var(--primary-orange); }
.btn-outline:hover { background: var(--primary-orange); color: var(--white); }
.btn-small { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.subtitle { font-size: 1rem; color: #888; margin-bottom: 1.5rem; }
.text-muted { color: #888; font-size: 0.9rem; }
.legend-box { background: var(--light-gray); padding: 1rem; border-radius: 8px; margin-top: 2rem; }
.legend-box h4 { margin-bottom: 0.5rem; color: var(--dark-gray); }
.legend-items { display: flex; flex-wrap: wrap; gap: 1rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
/* REQ-013: Audit Trail Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item:before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 2px;
    height: 100%;
    background: var(--light-gray);
}
.timeline-item:last-child:before {
    display: none;
}
.timeline-marker {
    position: relative;
    z-index: 1;
}
.timeline-marker .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
.timeline-content {
    margin-left: 1rem;
}
.timeline-content .card {
    border-left: 3px solid var(--primary-orange);
}
/* Audit Trail Table Enhancements */
.table-audit {
    font-size: 0.9rem;
}
.table-audit code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
/* Period Status Badges */
.badge-locked {
    background: #dc3545;
    color: white;
}
.badge-reopened {
    background: #ffc107;
    color: #333;
}
