@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #6B7280;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;

    --border-color: #E5E7EB;
    --border-focus: #4F46E5;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #DC2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 18px;
    font-weight: 400;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-text,
.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.input:hover {
    border-color: var(--text-muted);
}

.input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input::placeholder {
    color: var(--text-muted);
}

.input-error {
    border-color: var(--error);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Card */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.card-body {
    padding: 24px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 32px 0;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link-active {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.4s ease-out;
}

.login-header {
    padding: 40px 40px 24px;
    text-align: center;
}

.login-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.login-form {
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.alert-error::before {
    content: '⚠';
    font-size: 16px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background: var(--bg-secondary);
}

.table-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

.table-loading .spinner {
    margin-right: 8px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 99px;
}

.badge-admin {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.badge-user {
    background: rgba(107, 114, 128, 0.1);
    color: var(--secondary);
}

/* Actions */
.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.action-btn:hover {
    background: var(--border-color);
}

.action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 24px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-description {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Text */
.text-muted {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header {
        padding: 32px 24px 20px;
    }

    .login-form {
        padding: 0 24px 32px;
    }

    .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* SIP Card */
.sip-card {
    max-width: 600px;
    margin: 0 auto;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sip-credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sip-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sip-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sip-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sip-value {
    flex: 1;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.sip-password {
    letter-spacing: 2px;
}

.copy-btn,
.toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.copy-btn:hover,
.toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

/* Info Card */
.info-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-divider span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Success */
.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal Large */
.modal-lg {
    max-width: 600px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* SIP Accounts Container (Admin) */
.sip-accounts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sip-account-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.sip-account-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.sip-account-card.removing {
    opacity: 0;
    transform: scale(0.95);
}

.sip-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
}

.sip-account-number {
    font-weight: 600;
    font-size: 14px;
}

.btn-icon-only {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sip-account-body {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 500px) {
    .sip-account-body {
        grid-template-columns: 1fr;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* SIP Cards Grid (User Page) */
.sip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.sip-user-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.sip-user-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sip-user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
}

.sip-user-card-title {
    font-weight: 600;
    font-size: 13px;
}

.sip-user-card-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 500;
}

.sip-user-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sip-user-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sip-user-field label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sip-user-value-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.sip-user-value {
    flex: 1;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.sip-password-hidden {
    letter-spacing: 2px;
    color: var(--text-muted);
}

.copy-btn,
.toggle-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* Empty State Small */
.empty-state-small {
    text-align: center;
    padding: 32px 16px;
}

.empty-icon-small {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state-small p {
    color: var(--text-secondary);
    font-size: 15px;
}

.empty-state-small .text-muted {
    margin-top: 4px;
}

/* SIP Table Styles */
.sip-table-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sip-table-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sip-table-wrapper {
    overflow-x: auto;
}

.sip-table {
    width: 100%;
    border-collapse: collapse;
}

.sip-table th,
.sip-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.sip-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sip-table tr:last-child td {
    border-bottom: none;
}

.sip-table tr:hover td {
    background: var(--bg-secondary);
}

.sip-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
}

.sip-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sip-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.sip-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sip-cell code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: none;
    padding: 0;
}

.sip-cell .password-field {
    letter-spacing: 1px;
    color: var(--text-muted);
}

.mini-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: var(--transition);
    opacity: 0.6;
}

.sip-cell:hover .mini-btn {
    opacity: 1;
}

.mini-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

/* Error Report Button */
.btn-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-error:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.btn-error:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Errors Panel */
.errors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.errors-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.error-count-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    min-width: 24px;
    text-align: center;
}

/* Errors Grid Layout */
#errorsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    padding: 12px;
}

@media (min-width: 1400px) {
    #errorsList {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #errorsList {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
}

.error-card {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
}

.error-card:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-card.error-resolved {
    opacity: 0.6;
    background: var(--bg-secondary);
}

.error-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.error-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-user-info strong {
    color: var(--text-primary);
    font-size: 13px;
}

.error-time {
    font-size: 11px;
    color: var(--text-muted);
}

.error-sip-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.error-comment {
    background: var(--bg-tertiary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.error-comment p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.error-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.error-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.empty-errors {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pending {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.status-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.status-resolved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Small Button Variants */
.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.3;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

/* Row Warning */
.row-warning td {
    background: rgba(245, 158, 11, 0.05);
}

/* Error Info in Modal */
.error-info {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.error-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.error-info-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* Textarea */
.textarea {
    min-height: 100px;
    resize: vertical;
}

/* Modal Small */
.modal-sm {
    max-width: 450px;
}

/* Moderator Badge */
.badge-moderator {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

/* Moderator Comment */
.moderator-comment {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-left: 3px solid #8B5CF6;
    padding: 10px 12px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 12px;
}

.moderator-comment p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.mod-comment-inline {
    font-size: 12px;
    color: #7C3AED;
    margin-top: 6px;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* SIP Buttons Row */
.sip-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #EF4444;
    color: #EF4444;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #DC2626;
    color: #DC2626;
}

/* Clickable SIP Badge */
.sip-badge-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sip-badge-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* ============ PAYMENT SYSTEM ============ */

/* Payment Banner */
.payment-banner {
    background: linear-gradient(135deg, #FEF3CD 0%, #FFF3CD 100%);
    border: 1px solid #FFD54F;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.payment-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    font-size: 28px;
}

.payment-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #856404;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

/* Payment Modal Styles */
.payment-details {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-total {
    font-size: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    margin: 8px -16px -16px;
    padding: 16px;
    border-radius: 0 0 8px 8px;
}

.payment-total strong {
    color: #8B5CF6;
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 20px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
}

.wallet-address code {
    flex: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    word-break: break-all;
    color: var(--text-primary);
}

.btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: transform 0.2s;
}

.btn-copy:hover {
    transform: scale(1.1);
}

.hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Payment Status Badge */
.badge-paid {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}

.badge-unpaid {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

/* Admin Settings Card */
.settings-card {
    margin-bottom: 20px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    margin: -20px -20px 0;
    border-radius: 12px;
    transition: background 0.2s;
}

.settings-header:hover {
    background: rgba(139, 92, 246, 0.05);
}

.settings-header h3 {
    margin: 0;
    font-size: 16px;
}

.settings-toggle {
    font-size: 12px;
    color: var(--text-secondary);
}

.settings-body {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.settings-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.settings-row .input-group {
    flex: 1;
}

.settings-row .btn {
    margin-bottom: 0;
}

/* Error Dates */
.error-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
}

.error-resolved-time {
    color: #22C55E;
}

/* Price Info */
.price-info {
    display: inline-block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Error Date Inline */
.error-date-inline {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.stat-sip .stat-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.stat-payment .stat-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
}

.stat-error .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* SIP Status Counters */
.sip-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sip-header-left h3 {
    margin: 0;
}

.sip-count-badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.sip-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sip-status-counters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sip-counter {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.sip-counter-ok {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
}

.sip-counter-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.sip-counter-progress {
    background: rgba(251, 191, 36, 0.1);
    color: #D97706;
}

.counter-icon {
    font-size: 14px;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-support {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-support:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0077bb 100%);
    transform: translateY(-1px);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.settings-card-mini {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.settings-card-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-header-support {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.settings-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.settings-card-icon {
    font-size: 24px;
}

.settings-card-body {
    padding: 20px;
}

.settings-card-body .input-group {
    margin-bottom: 16px;
}

.settings-hint {
    font-size: 12px;
    color: #64748B;
    margin: 0 0 16px 0;
}

.btn-block {
    width: 100%;
}

/* Table Card Header */
.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.table-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
}

.table-card-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-badges {
    display: flex;
    gap: 10px;
}

.stat-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.stat-badge-users {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #6366F1;
}

.stat-badge-sips {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    color: #16A34A;
}

/* News Card */
.settings-card-full {
    grid-column: 1 / -1;
}

.settings-card-header-news {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-1px);
}

textarea.input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* News Banner for Users */
.news-banner {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
}

.news-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #92400E;
    font-size: 16px;
}

.news-banner-message {
    color: #78350F;
    font-size: 14px;
    line-height: 1.5;
}

.news-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(146, 64, 14, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400E;
}

.news-banner-close:hover {
    background: rgba(146, 64, 14, 0.2);
}

.news-banner-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #A16207;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-action-icon {
    font-size: 24px;
}

.quick-action-payment {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
}

.quick-action-support {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.quick-action-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.quick-action-news {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}


/* Single Settings Card */
.settings-card-single {
    max-width: 500px;
    margin: 0 auto;
}

/* News Success Message */
.news-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 1px solid #10B981;
    border-radius: 8px;
    color: #047857;
    font-weight: 600;
}

.news-success-icon {
    font-size: 20px;
}

.news-success-text {
    font-size: 14px;
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.admin-action-icon {
    font-size: 18px;
}

.admin-action-moderator {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-action-admin {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Repairman Badge */
.badge-repairman {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

/* Price Badge */
.stat-badge-price {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.badge-price {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.price-cell {
    font-size: 12px;
    color: #6B7280;
}

/* Logout Button */
.btn-logout {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ============ SIP SEARCH STYLES ============ */
.sip-table-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sip-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    width: 100%;
}

.sip-search-input {
    flex: 1;
    padding: 10px 14px;
    padding-right: 36px;
    font-size: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}

.sip-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.sip-search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.sip-search-clear:hover {
    background: var(--error);
    color: white;
    transform: scale(1.1);
}

.sip-search-results {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .sip-table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sip-search-wrapper {
        max-width: 100%;
    }

    .sip-status-counters {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============ IMPROVED NOTIFICATION SYSTEM ============ */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    max-width: 320px;
    pointer-events: all;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.notification.hide {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.notification-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    display: none;
    /* Hide title for minimal design */
}

.notification-message {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 0.5;
}

.notification-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    opacity: 1;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    width: 100%;
    transform-origin: left;
    animation: progress 3s linear forwards;
    opacity: 0.3;
}

@keyframes progress {
    to {
        transform: scaleX(0);
    }
}

/* Notification Types */
.notification-success {
    border-left-color: var(--success);
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error {
    border-left-color: var(--error);
}

.notification-error .notification-icon {
    color: var(--error);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-warning .notification-icon {
    color: var(--warning);
}

.notification-info {
    border-left-color: var(--primary);
}

.notification-info .notification-icon {
    color: var(--primary);
}

/* ============ SKELETON LOADERS ============ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-table {
    width: 100%;
}

.skeleton-row {
    display: table-row;
}

.skeleton-cell {
    display: table-cell;
    padding: 16px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin: 4px 0;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-long {
    width: 85%;
}

.skeleton-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.skeleton-button {
    height: 36px;
    width: 120px;
}

.skeleton-card {
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.skeleton-news-banner {
    height: 80px;
    margin-bottom: 12px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .notification-container {
        right: 12px;
        left: 12px;
        top: 12px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        max-width: none;
        padding: 8px 10px;
    }

    .notification-message {
        font-size: 12px;
    }
}