:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

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

/* Navigation */
.navbar {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.125rem;
    }
    
    /* Hide emoji and subtitle on mobile, show only "G2TFG" */
    .brand-emoji,
    .brand-subtitle {
        display: none;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.8125rem;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar .container {
        padding: 0.75rem 15px;
    }
    
    /* Make logout button smaller on mobile */
    #logoutBtn.btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
    }
    
    #logoutBtn.btn-sm {
        padding: 0.3rem 0.625rem !important;
        font-size: 0.7rem !important;
    }
}

/* Auth Screen */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.auth-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.auth-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-hint code {
    background: var(--background);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    input[type="text"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--background);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-back {
    margin-bottom: 1.5rem;
}

/* Responsive buttons */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* Pages */
.page {
    display: none;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 0.875rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
}

/* Exercise Item */
.exercise-item {
    background: var(--background);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.exercise-item.warmup {
    border-left-color: var(--secondary);
    background: #f1f5f9;
}

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

.exercise-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.exercise-prescription {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.exercise-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.exercise-sets-reps {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.exercise-percentage {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
}

.exercise-weight-inline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.weight-display-inline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.weight-unit {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.no-max-warning {
    color: var(--danger);
    font-size: 0.875rem;
    font-style: italic;
}

.section-divider {
    border: 0;
    border-top: 2px solid var(--border);
    margin: 2rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Max Input Card */
.max-input {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

.max-input input {
    flex: 1;
}

.max-input select {
    width: auto;
}

/* Admin Section */
.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header .btn {
        width: 100%;
    }
}

/* Data Table */
.data-table {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

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

.data-row:hover {
    background: var(--background);
}

@media (max-width: 768px) {
    .data-row {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

.data-info {
    flex: 1;
}

.data-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.data-actions {
    display: flex;
    gap: 0.5rem;
}

/* Workout Exercise Admin */
.workout-exercise-row {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr auto;
    gap: 1rem;
    align-items: center;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        width: 98%;
        border-radius: calc(var(--radius) / 2);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 1001;
}

.modal-close:hover {
    color: var(--text-primary);
}

#modalTitle {
    margin-bottom: 1.5rem;
}

/* Messages */
.error-message {
    background: #fee;
    color: var(--danger);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.success-message {
    background: #efe;
    color: var(--success);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

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

    .workout-exercise-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ====================
   WORKOUT TEXT (PASTE AS-IS)
   ==================== */

.workout-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9375rem;
    line-height: 1.5;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.workout-weight {
    font-weight: 700;
    /* color: var(--primary, #6366f1); */
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .workout-text {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .workout-text {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }
}

.workout-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-secondary);
}

.badge-admin {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.badge-user {
    border-color: var(--border);
    background: var(--background);
    color: var(--text-secondary);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--primary);
}

.admin-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Missing max links */
.missing-max-link {
    color: #9a3412;
    text-decoration: underline;
    margin-right: 0.5rem;
    cursor: pointer;
}

.missing-max-link:hover {
    color: #7c2d12;
}

/* Set Max Modal specific */
#setMaxModal .modal-content {
    max-width: 500px;
}

/* Exercise list styling */
.exercise-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* YouTube Container */
#youtubeContainer {
    margin-top: 2rem;
}

#youtubeContainer h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#youtubeContainer iframe {
    width: 100%;
    height: 500px; /* Increased height for desktop */
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

/* Responsive YouTube iframe */
@media (max-width: 1024px) {
    #youtubeContainer iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    #youtubeContainer iframe {
        height: 315px; /* Original mobile-friendly size */
    }
}

@media (max-width: 480px) {
    #youtubeContainer iframe {
        height: 250px;
    }
}

/* List styling for workouts and maxes */
.workout-list-item, .maxes-list-item {
    margin-bottom: 1rem;
}

.workout-list-item .card, .maxes-list-item .card {
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.workout-list-item .card:hover, .maxes-list-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Single column layout for workouts and maxes */
#workoutsList, #maxesList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modal improvements */
.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Autosave indicator */
.autosave-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.autosave-indicator.show {
    opacity: 1;
}

/* ====================
   MAXES GRID LAYOUT
   ==================== */

.maxes-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    /* Responsive grid - automat se ajustează în funcție de lățimea ecranului */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Pe ecrane mari (>1200px) - 3 coloane */
@media (min-width: 1200px) {
    .maxes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pe ecrane medii (768px - 1199px) - 2 coloane */
@media (min-width: 768px) and (max-width: 1199px) {
    .maxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pe telefoane (<768px) - 1 coloană */
@media (max-width: 767px) {
    .maxes-grid {
        grid-template-columns: 1fr;
    }
}

/* Card pentru fiecare exercițiu în grid */
.max-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .max-card {
        padding: 1rem;
    }
}

.max-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.max-card.modified {
    border-color: var(--primary);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.max-card-header {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.max-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.max-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.max-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.max-input-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.max-input-row .form-group {
    margin: 0;
    flex: 1;
}

.max-input-row .form-group:last-child {
    flex: 0 0 100px;
}

.max-card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.max-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.max-status.saved {
    color: var(--success);
}

.max-status.unsaved {
    color: var(--danger);
}

.max-status.auto-saving {
    color: var(--secondary);
}

.max-status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.max-status-icon.saved {
    background: var(--success);
}

.max-status-icon.unsaved {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

.max-status-icon.auto-saving {
    background: var(--secondary);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive pentru max-input-row */
@media (max-width: 768px) {
    .max-input-row {
        gap: 0.5rem;
    }
    
    .max-input-row .form-group {
        flex: 1;
    }
    
    .max-input-row .form-group:last-child {
        flex: 0 0 80px;
    }
}

@media (max-width: 480px) {
    .max-input-row {
        gap: 0.5rem;
    }
    
    .max-input-row .form-group:last-child {
        flex: 0 0 70px;
    }
}

/* Save all progress */
.save-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.save-progress-bar {
    width: 100px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.save-progress-fill {
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

/* Bulk save status */
#saveAllStatus {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auto-save indicator */
.auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-save-indicator.show {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.btn.pulse {
    animation: pulse 2s infinite;
}

.info-message {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid #7dd3fc;
}

/* ====================
   GLOBAL NOTIFICATIONS
   ==================== */

.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 350px;
    cursor: pointer;
    border-left: 4px solid var(--primary);
}

.global-notification.show {
    transform: translateX(0);
}

.global-notification.success {
    border-left-color: var(--success);
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
}

.global-notification.error {
    border-left-color: var(--danger);
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
}

.global-notification.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.global-notification.info {
    border-left-color: var(--secondary);
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.notification-text {
    flex: 1;
    font-size: 0.9375rem;
}

.global-notification.success .notification-icon {
    color: var(--success);
}

.global-notification.error .notification-icon {
    color: var(--danger);
}

.global-notification.warning .notification-icon {
    color: #f59e0b;
}

.global-notification.info .notification-icon {
    color: var(--secondary);
}

/* Remove auto-save indicator dacă vrei să-l înlocuiești complet */
.auto-save-indicator {
    display: none; /* Ascunde indicatorul vechi */
}

/* ==================== VISITOR LOGS TABLE STYLING ==================== */

.logs-table-wrapper {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.logs-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.logs-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.logs-table thead th .th-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.logs-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

.logs-table tbody tr:hover {
    background: var(--bg);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logs-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* User Cell */
.log-user-cell {
    font-weight: 500;
}

.log-user-cell .user-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

.username-logged {
    color: var(--primary);
    font-weight: 600;
}

.username-anonymous {
    color: var(--text-secondary);
    font-style: italic;
}

/* IP Cell */
.log-ip-cell code {
    background: var(--bg);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid var(--border);
    display: inline-block;
}

/* Time Cell */
.log-time-cell {
    color: var(--text-secondary);
}

.log-time-cell .time-icon {
    margin-right: 0.5rem;
    opacity: 0.6;
}

/* Visits Cell */
.log-visits-cell {
    text-align: center;
}

.visits-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), #27ae60);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

/* Device Cell */
.log-device-cell .device-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.device-mobile {
    color: var(--success);
    font-weight: 500;
}

.device-pc {
    color: var(--primary);
    font-weight: 500;
}

/* Zebra striping alternativ (opțional) */
.logs-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.logs-table tbody tr:nth-child(even):hover {
    background: var(--bg);
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .logs-table-wrapper {
        overflow-x: auto;
    }
    
    .logs-table {
        min-width: 800px;
    }
    
    .logs-table thead th,
    .logs-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .visits-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.9rem;
    }
}

/* Empty state */
.logs-table-wrapper + div[style*="text-align: center"] {
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--border);
}