/* ============================================
   Admin Hub - PIU Server
   ============================================ */

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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --sidebar-width: 280px;
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   Login Screen
   ============================================ */

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

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

.login-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-group select:hover {
    border-color: var(--primary-color);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Dashboard Screen
   ============================================ */

.dashboard-screen {
    min-height: 100vh;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--header-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-darker);
}

.header-left h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

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

.header-icons {
    display: flex;
    gap: 1rem;
}

.icon-badge {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.icon-badge:hover {
    background: var(--bg-darker);
}

.icon-badge i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.badge-green {
    background: var(--success-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.user-menu-trigger:hover {
    background: rgba(249, 115, 22, 0.1);
}

.user-menu-arrow {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-menu.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-weight: 600;
}


.user-name {
    color: var(--text-primary);
    font-weight: 500;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-item:hover {
    background: var(--bg-darker);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    min-height: calc(100vh - 80px);
    box-shadow: var(--shadow-sm);
}

.sidebar-nav {
    padding: 0 1rem;
}

.nav-section-title {
    padding: 1.5rem 1rem 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: default;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item i:first-child {
    width: 20px;
    text-align: center;
}

.nav-item span {
    flex: 1;
    font-weight: 500;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.nav-item.active {
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item-parent {
    position: relative;
}

.nav-item-parent .nav-chevron {
    transition: transform 0.3s ease;
}

.nav-item-parent.expanded .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    padding-left: 3rem;
}

.nav-subitem i {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
}

.nav-subitem span {
    flex: 1;
    font-weight: 400;
    font-size: 0.9rem;
}

.nav-subitem:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-primary);
}

.nav-subitem.active {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.sidebar-projects {
    margin-top: 2rem;
    padding: 0 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.sidebar-projects h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

/* ============================================
   Main Content
   ============================================ */

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none; /* Hide breadcrumb for cleaner look */
}

.breadcrumb span:last-child {
    color: var(--text-primary);
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

/* ============================================
   Widgets Section
   ============================================ */

.widgets-section {
    margin-bottom: 2rem;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.widget-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.widget-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.widget-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-card canvas {
    max-height: 200px;
}

@media (max-width: 1200px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    background: #d1fae5;
    color: #065f46;
}

.stat-change.negative {
    background: #fee2e2;
    color: #991b1b;
}

.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

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

.welcome-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 200;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }


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

/* ============================================
   Profile Content (inside dashboard)
   ============================================ */

.profile-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.profile-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-role {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.profile-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.profile-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-header-actions h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.detail-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-item label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.detail-item p {
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.profile-readonly {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.profile-actions .btn {
    flex: 1;
}

/* ============================================
   Profile Activity Logs
   ============================================ */

.profile-activity-logs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.profile-activity-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-activity-logs h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-activity-logs h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
}

.btn-link i {
    font-size: 0.875rem;
}

.activity-logs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-log-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.activity-log-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.activity-log-item.empty,
.activity-log-item.error {
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.activity-log-item.error {
    color: var(--danger-color);
}

.activity-log-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.activity-log-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.activity-log-type {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.activity-log-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.activity-log-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.activity-log-ip {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.activity-log-ip i {
    font-size: 0.7rem;
}

/* Filter Form Styles */
.filter-form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .filter-form-row {
        flex-wrap: wrap;
    }
}

.filter-form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.filter-form-row .form-group-tiny {
    flex: 0 0 100px;
    min-width: 100px;
}

.filter-form-row .form-group label {
    white-space: nowrap;
}

.filter-form-row .form-group-tiny select {
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.filter-form-row .form-group-tiny select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-form-row .form-group-tiny select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-icon-only {
    padding: 0.75rem;
    min-width: 48px;
    width: 48px;
    justify-content: center;
}

.btn-icon-only i {
    margin: 0;
}

.filter-form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.filter-form-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-form-row select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* All Activities Logs List */
.all-activities-logs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#allActivitiesLogsContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Shimmer Loader */
.activity-log-shimmer {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.activity-log-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent
    );
    animation: shimmer-slide 1.5s infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shimmer-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--bg-card);
    flex-shrink: 0;
    position: relative;
}

.shimmer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shimmer-line {
    height: 12px;
    background: var(--bg-card);
    border-radius: 4px;
    position: relative;
}

.shimmer-line:first-child {
    width: 40%;
}

.shimmer-line:nth-child(2) {
    width: 70%;
}

.shimmer-line:last-child {
    width: 50%;
    height: 10px;
}

/* Table Shimmer */
.table-shimmer {
    display: table-row;
}

.table-shimmer td {
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.table-shimmer td::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent
    );
    animation: shimmer-slide 1.5s infinite;
    z-index: 1;
}

.table-shimmer td .shimmer-bar {
    height: 16px;
    background: var(--bg-dark);
    border-radius: 4px;
    width: 60%;
    position: relative;
    margin: 4px 0;
    display: block;
    z-index: 0;
}

.table-shimmer td:first-child .shimmer-bar {
    width: 20px;
    height: 20px;
    margin: 0 auto;
}

.table-shimmer td:last-child .shimmer-bar {
    width: 80px;
    height: 32px;
    margin: 0 auto;
}

/* Permission Table Shimmer */
.permission-table-shimmer {
    display: table-row;
}

.permission-table-shimmer td {
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}

.permission-table-shimmer td::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent
    );
    animation: shimmer-slide 1.5s infinite;
}

.permission-table-shimmer td .shimmer-bar {
    height: 16px;
    background: var(--bg-card);
    border-radius: 4px;
}

.permission-table-shimmer td:first-child .shimmer-bar {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border-radius: 4px;
}

.permission-table-shimmer td:nth-child(2) .shimmer-bar {
    width: 200px;
}

.permission-table-shimmer td:last-child .shimmer-bar {
    width: 300px;
}

/* Activities Pagination */
.activities-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.activities-pagination button {
    min-width: 120px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.activities-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.activities-pagination button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   Modal (Standard Pattern)
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Garante que o filtro da modal Intro Alimentar Compras fique sempre visível */
#allIntroAlimentarPurchasesModal #filterIntroAlimentarPurchasesForm {
    display: block !important;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.btn-secondary {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease forwards;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

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

.toast-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-info .toast-icon {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ============================================
   Minecraft Section
   ============================================ */

.minecraft-status-section,
.minecraft-players-section,
.minecraft-store-section,
.minecraft-transactions-section {
    margin-bottom: 3rem;
}

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

.section-header-actions h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.minecraft-players-list,
.minecraft-store-items-list,
.minecraft-transactions-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0;
    min-height: 200px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.minecraft-transactions-list .data-table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.minecraft-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.minecraft-player-card:last-child {
    margin-bottom: 0;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: var(--bg-darker);
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

.data-table tbody tr:hover {
    background: var(--bg-darker);
}

.data-table code {
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Permissions Table */
.permissions-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
}

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

.permissions-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-darker);
    z-index: 10;
}

.permissions-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.permissions-table th:first-child {
    text-align: center;
}

.permissions-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

.permissions-table tbody tr:hover {
    background: var(--bg-darker);
}

.permissions-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.permissions-table .text-center {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-icon:hover {
    background: var(--bg-darker);
    color: var(--primary-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.no-data,
.loading,
.error,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading i {
    margin-right: 0.5rem;
}

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

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.data-item:hover {
    background: var(--bg-darker);
}

.data-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.data-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.data-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   Purchases Card Section
   ============================================ */

.purchases-card-section {
    margin-top: 2rem;
}

.purchases-filter-chips {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-chip.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.purchases-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.purchase-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-card-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.purchase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.purchase-card-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.purchase-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.purchase-card-status.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.purchase-card-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.purchase-card-status.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.purchase-card-status.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.purchase-card-status.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.purchase-card-status.status-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.purchase-log-icon.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.purchase-log-icon.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.purchase-log-icon.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.purchase-log-icon.status-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.purchase-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.purchase-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.purchase-card-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.purchase-card-amount {
    color: var(--success-color);
    font-size: 1.125rem;
}

.purchase-card-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.btn-resend-ebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-resend-ebook:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.btn-resend-ebook:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.purchase-log-content .btn-resend-ebook {
    margin-top: 0.5rem;
    align-self: flex-start;
    width: auto;
}

.purchase-card-shimmer {
    pointer-events: none;
}

.purchase-card-shimmer .shimmer-bar {
    background: linear-gradient(90deg, var(--bg-darker) 25%, var(--bg-dark) 50%, var(--bg-darker) 75%);
    background-size: 200% 100%;
    animation: shimmer-slide 1.5s infinite;
    border-radius: 0.25rem;
}

.all-purchases-list {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.all-purchases-list::-webkit-scrollbar {
    width: 6px;
}

.all-purchases-list::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 3px;
}

.all-purchases-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.all-purchases-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

#allPurchasesContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-log-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.purchase-log-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.purchase-log-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.purchase-log-icon.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.purchase-log-icon.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.purchase-log-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.purchase-log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.purchase-log-customer {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.purchase-log-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.purchase-log-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.purchase-log-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.purchase-log-email i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.purchase-log-amount {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--success-color);
}

.purchase-log-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}
