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

:root {
    --neon-yellow: #FFD700;
    --neon-yellow-glow: #FFD70080;
    --purple: #8B5CF6;
    --purple-dark: #6D28D9;
    --bg-dark: #0F0F1E;
    --bg-card: #1A1A2E;
    --bg-card-hover: #252541;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --cyan: #06B6D4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: all;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px var(--neon-yellow-glow);
}

/* Login/Signup Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 100%);
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-yellow-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.auth-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px var(--neon-yellow-glow);
    width: 100%;
    max-width: 450px;
    z-index: 1;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.auth-logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--neon-yellow-glow);
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.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 input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px var(--neon-yellow-glow);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--warning) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--neon-yellow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--neon-yellow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2rem 0 0 0;
    position: fixed;
    height: 100vh;
    z-index: 1001;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 1.5rem;
    margin-bottom: 3rem;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.nav-item.active {
    background: var(--bg-card-hover);
    color: var(--neon-yellow);
    border-left: 3px solid var(--neon-yellow);
    box-shadow: inset 0 0 20px var(--neon-yellow-glow);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--neon-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--neon-yellow);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--neon-yellow-glow);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
}

.btn-add {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--warning) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--neon-yellow-glow);
    white-space: nowrap;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--neon-yellow-glow);
}

.btn-add:active {
    transform: translateY(0);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-yellow);
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow-glow);
}

/* Fix for Avg Response color */
.stat-card:last-child .stat-value {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success);
}

/* Endpoint List */
.endpoint-filters {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--neon-yellow);
}

.endpoints-list {
    display: grid;
    gap: 1rem;
}

.endpoint-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.endpoint-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: auto;
}

/* Edit button on endpoint cards */
.endpoint-edit-btn,
.endpoint-delete-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--neon-yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: auto;
}

.endpoint-delete-btn {
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.endpoint-edit-btn svg,
.endpoint-delete-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.endpoint-card:hover .endpoint-edit-btn,
.endpoint-card:hover .endpoint-delete-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.endpoint-edit-btn:hover {
    border-color: var(--neon-yellow);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--neon-yellow-glow);
    transform: scale(1.05);
}

.endpoint-delete-btn:hover {
    border-color: var(--danger);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.endpoint-edit-btn:active,
.endpoint-delete-btn:active {
    transform: scale(0.95);
}

/* Delete Confirmation Modal */
.delete-modal {
    max-width: 450px;
    border: 2px solid var(--danger);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
}

.delete-modal-body {
    padding: 1.5rem 0;
    text-align: center;
}

.delete-warning {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.delete-endpoint-name {
    font-size: 1.3rem;
    color: var(--danger);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.delete-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: var(--neon-yellow);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--neon-yellow-glow);
}

.btn-delete {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    border: 2px solid var(--danger);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
    border-color: #dc2626;
}

.btn-delete:active {
    transform: translateY(0);
}

.btn-delete:disabled,
.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .endpoint-edit-btn,
    .endpoint-delete-btn {
        /* Always show on mobile since hover doesn't work well */
        opacity: 1;
        transform: translateY(0);
    }
    
    .delete-modal-actions {
        flex-direction: column;
    }
}

/* Ensure edit modal has same styling as add modal */
#editEndpointModal .modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.endpoint-card:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.endpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
    padding-right: 90px;
}

.endpoint-info {
    flex: 1;
    min-width: 0;
}

.endpoint-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.status-dot.warning {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.endpoint-url {
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all;
}

.endpoint-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.endpoint-stat {
    display: flex;
    flex-direction: column;
}

.endpoint-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.endpoint-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-yellow);
}

/* Profile Page - FIXED */
.profile-container {
    max-width: 100%;
}

.profile-header {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* FIXED: Avatar wrapper with proper centering */
.profile-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 0 40px var(--neon-yellow-glow);
    flex-shrink: 0;
    position: relative;
}

.profile-details {
    flex: 1;
    min-width: 250px;
}

.profile-details h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--neon-yellow);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* NEW: Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-yellow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.profile-stat-info {
    flex: 1;
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-yellow);
    line-height: 1.2;
}

.profile-stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.profile-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

.interval-option {
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interval-option:hover {
    border-color: var(--neon-yellow);
    background: var(--bg-card-hover);
}

.interval-option.selected {
    border-color: var(--neon-yellow);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px var(--neon-yellow-glow);
}

.interval-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-yellow);
}

.interval-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.pulse-icon {
    margin-right: 6px;
    display: inline-block;
    animation: pulseGlow 1.8s infinite ease-in-out;
    filter: drop-shadow(0 0 4px var(--neon-yellow));
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px var(--neon-yellow));
    }
    50% {
        transform: scale(1.07);
        filter: drop-shadow(0 0 8px var(--neon-yellow));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px var(--neon-yellow));
    }
}

/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Toast Notification */
.toast {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease-out;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    animation: toastProgress 5s linear;
}

/* Toast Success */
.toast.success {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Toast Error */
.toast.error {
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Toast Warning */
.toast.warning {
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Toast Info */
.toast.info {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Toast Content */
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

/* Toast Close Button */
.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.toast-close svg {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(calc(100% + 2rem));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 2rem));
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
    }
}

/* List styling for multiple messages */
.toast-message ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.toast-message li {
    margin: 0.25rem 0;
}

/* Page Footer */
.page-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-text a {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 1.75rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .endpoint-edit-btn,
    .endpoint-delete-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 280px;
        max-width: 85%;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    }

    .sidebar-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 1.5rem;
    }

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

    .stat-card {
        padding: 1.25rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    .auth-container {
        padding: 2rem;
    }

    .auth-logo h1 {
        font-size: 2rem;
    }

    .profile-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-details h2 {
        font-size: 1.5rem;
    }

    .profile-section {
        padding: 1.5rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .interval-options {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .filter-select {
        width: 100%;
    }

    .footer-socials {
        gap: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

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

    .stat-value {
        font-size: 1.75rem;
    }

    .endpoint-card {
        padding: 1.25rem;
    }

    .endpoint-name {
        font-size: 1rem;
    }

    .endpoint-stat-value {
        font-size: 1rem;
    }
    
    .profile-stat-value {
        font-size: 1.5rem;
    }
    
    .profile-stat-icon {
        font-size: 2rem;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .sidebar-logo h2 {
        font-size: 1.25rem;
    }

    .nav-item {
        padding: 0.875rem 1rem;
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-card-hover);
}