/* Transylvania Healing - Custom Styles */

:root {
    --sidebar-width: 250px;
    --navbar-height: 56px;
    --primary-color: #0d6efd;
    --sidebar-bg: #212529;
}

/* Layout */
body {
    padding-top: var(--navbar-height);
    min-height: 100vh;
    background-color: #f8f9fa;
}

.wrapper {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#sidebar .sidebar-content {
    padding-top: 1rem;
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(13, 110, 253, 0.2);
    border-left-color: var(--primary-color);
}

#sidebar .nav-link i {
    font-size: 1.1rem;
}

/* Main Content */
#content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: calc(100vh - var(--navbar-height));
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-metric {
    padding: 1.5rem;
}

.card-metric .metric-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.card-metric .metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-metric .metric-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Tables */
.table-container {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

.table-container .table {
    margin-bottom: 0;
}

.table-container .table th {
    background-color: #f8f9fa;
    border-bottom-width: 1px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Badges */
.badge-status {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: 50rem;
}

.badge-confirmed {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #997404;
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item {
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
}

/* Navbar customization */
.navbar-brand {
    font-weight: 600;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

/* User avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Messages */
.messages-container .alert {
    border: none;
    border-radius: 0.5rem;
}

/* Login page specific */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    padding: 2.5rem;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.login-card .logo h2 {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #212529;
}

.login-card .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.login-card .btn-login {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    #sidebar.show {
        margin-left: 0;
    }
    
    #content {
        margin-left: 0;
    }
}

/* Status Badges - Fișe în lucru */
.badge-in-lucru {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.badge-necesita-raport {
    background-color: rgba(255, 193, 7, 0.2);
    color: #997404;
}

.badge-gata {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
}

/* Status Badges - Rapoarte */
.badge-generat {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.badge-in-revizuire {
    background-color: rgba(13, 202, 240, 0.15);
    color: #087990;
}

/* Upload Area */
.upload-area {
    transition: all 0.2s ease;
}

.upload-area:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.border-dashed {
    border-style: dashed !important;
    border-color: #dee2e6 !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.25rem;
    border-left: 2px solid #dee2e6;
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-date {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.timeline-action {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.timeline-user {
    font-size: 0.8rem;
}

/* Accordion customization */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Card with link */
.card[class*="card-metric"] {
    position: relative;
}

.card .stretched-link::after {
    border-radius: 0.75rem;
}

/* JSON Preview */
pre code {
    font-size: 0.85rem;
    line-height: 1.5;
}
