/* Bug Tracking System Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #64748b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;

    --priority-critical: #dc2626;
    --priority-high: #f59e0b;
    --priority-medium: #3b82f6;
    --priority-low: #10b981;

    --status-open: #3b82f6;
    --status-in-progress: #8b5cf6;
    --status-testing: #f59e0b;
    --status-resolved: #10b981;
    --status-closed: #64748b;
}

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

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

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

/* Header */
header {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

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

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

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

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

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

/* Wizard Styles */
.wizard-steps {
    position: relative;
    padding: 0 2rem;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.wizard-step {
    position: relative;
    z-index: 1;
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.wizard-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.wizard-step .step-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.wizard-step .step-number.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.wizard-step .step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-step-content {
    min-height: 400px;
    animation: fadeIn 0.3s ease;
}

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

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

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* Statistics */
.statistics {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.statistics h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.stat-card.status-open { background: linear-gradient(135deg, var(--status-open) 0%, #2563eb 100%); }
.stat-card.status-in-progress { background: linear-gradient(135deg, var(--status-in-progress) 0%, #7c3aed 100%); }
.stat-card.status-testing { background: linear-gradient(135deg, var(--status-testing) 0%, #ea580c 100%); }
.stat-card.status-resolved { background: linear-gradient(135deg, var(--status-resolved) 0%, #059669 100%); }
.stat-card.status-closed { background: linear-gradient(135deg, var(--status-closed) 0%, #475569 100%); }

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Priority Stats */
.priority-stats h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.priority-card {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.priority-card.critical { background: #fef2f2; border-color: var(--priority-critical); }
.priority-card.high { background: #fffbeb; border-color: var(--priority-high); }
.priority-card.medium { background: #eff6ff; border-color: var(--priority-medium); }
.priority-card.low { background: #f0fdf4; border-color: var(--priority-low); }

.priority-value {
    font-size: 24px;
    font-weight: 700;
}

.priority-card.critical .priority-value { color: var(--priority-critical); }
.priority-card.high .priority-value { color: var(--priority-high); }
.priority-card.medium .priority-value { color: var(--priority-medium); }
.priority-card.low .priority-value { color: var(--priority-low); }

.priority-label {
    font-size: 12px;
    font-weight: 500;
}

/* Filters */
.filters {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

/* Bugs List */
.bugs-list {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bugs-list h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

/* Assignment selects in bugs table */
.assignment-select {
    min-width: 150px;
    transition: all 0.2s;
}

.assignment-select:hover {
    border-color: var(--primary-color) !important;
}

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

.table-container {
    overflow-x: auto;
}

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

thead {
    background: var(--bg-color);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

tr:hover {
    background: var(--bg-color);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Badges */
.priority-badge,
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.critical { background: #fef2f2; color: var(--priority-critical); }
.priority-badge.high { background: #fffbeb; color: var(--priority-high); }
.priority-badge.medium { background: #eff6ff; color: var(--priority-medium); }
.priority-badge.low { background: #f0fdf4; color: var(--priority-low); }

.status-badge.open { background: #eff6ff; color: var(--status-open); }
.status-badge.in_progress { background: #f5f3ff; color: var(--status-in-progress); }
.status-badge.testing { background: #fffbeb; color: var(--status-testing); }
.status-badge.resolved { background: #f0fdf4; color: var(--status-resolved); }
.status-badge.closed { background: #f8fafc; color: var(--status-closed); }
.status-badge.reopened { background: #fef2f2; color: var(--danger-color); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 2% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s;
}

.modal-content.modal-small {
    max-width: 500px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Bug Details Page */
.bug-details {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-bottom: 24px;
}

.bug-main {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bug-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bug-id {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary-color);
}

.bug-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metadata-item strong {
    font-size: 12px;
    color: var(--text-secondary);
}

.bug-section {
    margin-top: 24px;
}

.bug-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.bug-section pre {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap;
    font-size: 13px;
}

.bug-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Comments */
.comments-section,
.history-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-form {
    margin-bottom: 24px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: inherit;
}

.comment {
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.comment-user {
    font-weight: 600;
}

.comment-time {
    color: var(--text-secondary);
}

.history-entry {
    padding: 12px;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-color);
    margin-bottom: 12px;
    border-radius: 4px;
}

.history-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Attachments */
.attachment {
    display: inline-block;
    margin: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachment img {
    max-width: 200px;
    max-height: 200px;
    display: block;
}

.attachment video {
    max-width: 300px;
    display: block;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 12px;
    margin: 4px;
}

/* Teams */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.team-members {
    margin-top: 12px;
    font-size: 13px;
}

.team-member {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-member:last-child {
    border-bottom: none;
}

.team-member-role {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Responsive */
@media (max-width: 768px) {
    .bug-details {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

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

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-item:hover {
    background: var(--bg-color);
    border-left-color: var(--primary-color);
}

.sidebar-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-text {
    font-size: 0.9375rem;
    transition: opacity 0.3s ease;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

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

.sidebar-user-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg-color);
}

.sidebar-user-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

.sidebar-logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.3s ease;
}

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

.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-logout-btn {
    opacity: 0;
    width: 0;
    overflow: hidden;
    padding: 0;
}

.sidebar.collapsed .sidebar-user-display {
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.5rem;
}

.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 60px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    /* Add overlay when sidebar is open on mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
}

/* Image Gallery Modal Styles */
.image-gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-gallery-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery-content img,
.image-gallery-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.image-gallery-close:hover {
    color: #fff;
}

.image-gallery-prev,
.image-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10001;
}

.image-gallery-prev:hover,
.image-gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.image-gallery-prev {
    left: 20px;
}

.image-gallery-next {
    right: 20px;
}

.image-gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading Spinner and Overlay */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

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

.loader-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 200px;
}

.loader-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.loader-progress {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Modal-specific loader */
.modal-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    flex-direction: column;
}

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

.modal-loader .loader-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.modal-loader .loader-text {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Button loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}
