/* Dashboard Styles */
.ump-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.ump-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ump-header-left h1 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
}

.ump-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ump-welcome {
    color: #7f8c8d;
    font-size: 16px;
}

.ump-user-email {
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
}

.ump-logout-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ump-logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* Stats Summary */
.ump-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ump-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.ump-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ump-stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.ump-stat-card:nth-child(1):before { background: #3498db; }
.ump-stat-card:nth-child(2):before { background: #2ecc71; }
.ump-stat-card:nth-child(3):before { background: #9b59b6; }
.ump-stat-card:nth-child(4):before { background: #e74c3c; }

.ump-stat-card h3 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ump-stat-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.ump-stat-card:nth-child(1) .ump-stat-number { color: #3498db; }
.ump-stat-card:nth-child(2) .ump-stat-number { color: #2ecc71; }
.ump-stat-card:nth-child(3) .ump-stat-number { color: #9b59b6; }
.ump-stat-card:nth-child(4) .ump-stat-number { color: #e74c3c; }

.ump-stat-trend {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

/* Main Content */
.ump-dashboard-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.ump-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.ump-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ump-section h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.ump-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ump-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
}

.ump-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ump-btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
}

.ump-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.ump-btn-danger {
    background: #e74c3c;
    color: white;
}

.ump-btn-danger:hover {
    background: #c0392b;
}

.ump-btn-icon {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ump-btn-icon:hover {
    background: #f5f5f5;
    color: #3498db;
    transform: scale(1.1);
}

/* Websites Grid */
.ump-websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.ump-website-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ump-website-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

.ump-website-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.ump-website-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.ump-website-status:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ump-status-up {
    background: #2ecc71;
}

.ump-status-up:after {
    background: rgba(46, 204, 113, 0.3);
}

.ump-status-down {
    background: #e74c3c;
}

.ump-status-down:after {
    background: rgba(231, 76, 60, 0.3);
}

.ump-status-warning {
    background: #f39c12;
}

.ump-status-warning:after {
    background: rgba(243, 156, 18, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ump-website-name {
    margin: 0;
    flex-grow: 1;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.ump-website-actions {
    display: flex;
    gap: 5px;
}

.ump-website-url {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ump-website-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ump-website-stat {
    text-align: center;
}

.ump-stat-label {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ump-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.ump-website-features {
    margin-bottom: 15px;
}

.ump-features-header {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ump-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f4fc;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 5px 5px 0;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.ump-feature-tag.ump-status-success {
    background: #d4edda;
    color: #155724;
    border-color: rgba(40, 167, 69, 0.2);
}

.ump-feature-tag.ump-status-error {
    background: #f8d7da;
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.2);
}

.ump-feature-tag.ump-status-warning {
    background: #fff3cd;
    color: #856404;
    border-color: rgba(255, 193, 7, 0.2);
}

.ump-feature-icon {
    font-size: 14px;
}

.ump-website-protocol {
    margin-bottom: 15px;
    font-size: 13px;
}

.ump-protocol-label {
    color: #95a5a6;
    margin-right: 5px;
}

.ump-protocol-value {
    color: #2c3e50;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.ump-view-details {
    display: block;
    text-align: center;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 12px;
    border-radius: 6px;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid #e8f4fc;
}

.ump-view-details:hover {
    background: #e8f4fc;
    color: #2980b9;
    transform: translateY(-1px);
}

/* Activity List */
.ump-activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.ump-activity-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.ump-activity-item:hover {
    background-color: #f8f9fa;
}

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

.ump-activity-time {
    color: #95a5a6;
    font-size: 12px;
    min-width: 80px;
    font-weight: 500;
}

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

.ump-activity-up .ump-activity-icon {
    background: #d4edda;
    color: #155724;
}

.ump-activity-down .ump-activity-icon {
    background: #f8d7da;
    color: #721c24;
}

.ump-activity-add .ump-activity-icon {
    background: #e8f4fc;
    color: #0c5460;
}

.ump-activity-message {
    flex-grow: 1;
    color: #2c3e50;
    font-size: 14px;
}

/* Charts */
.ump-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ump-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ump-chart-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

/* Loading State */
.ump-loading {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.ump-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Empty State */
.ump-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    grid-column: 1 / -1;
}

.ump-empty-state h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Add Website Page */
.ump-add-website-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.ump-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ump-page-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.ump-back-btn {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.ump-back-btn:hover {
    color: #2980b9;
    transform: translateX(-3px);
}

.ump-add-website-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.ump-form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.ump-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ump-form-section h2 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ump-form-group {
    margin-bottom: 25px;
}

.ump-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ump-input,
.ump-input-large,
.ump-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ump-input-large {
    padding: 14px 16px;
    font-size: 16px;
}

.ump-input:focus,
.ump-input-large:focus,
.ump-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ump-form-group small {
    display: block;
    margin-top: 5px;
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.4;
}

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

/* Feature Toggles */
.ump-feature-toggle {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.ump-feature-toggle:hover {
    background: #f1f3f4;
}

.ump-checkbox {
    margin-right: 12px;
    transform: scale(1.2);
}

.ump-feature-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
}

.ump-feature-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 15px;
}

.ump-feature-desc {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
}

.ump-feature-details {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: none;
}

.ump-feature-details h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

/* Form Actions */
.ump-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

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

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

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

.ump-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.ump-modal-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ump-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ump-modal-success {
    background: #d4edda;
    color: #155724;
}

.ump-modal-close {
    color: #95a5a6;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.ump-modal-close:hover {
    color: #e74c3c;
}

.ump-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.ump-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Test Results */
.ump-test-loading {
    text-align: center;
    padding: 20px;
}

.ump-test-result {
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.ump-test-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ump-test-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ump-test-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ump-test-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.ump-test-message {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.ump-test-details {
    font-size: 14px;
    color: inherit;
    opacity: 0.9;
    line-height: 1.4;
    text-align: center;
}

/* Website Details Page */
.ump-website-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.ump-website-url {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.ump-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ump-status-indicator {
    font-size: 24px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
}

.ump-status-up {
    background: #d4edda;
    color: #155724;
}

.ump-status-down {
    background: #f8d7da;
    color: #721c24;
}

.ump-stat-value {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
}

.ump-stat-desc {
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
}

.ump-features-section,
.ump-actions-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ump-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ump-feature-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ump-feature-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
}

.ump-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ump-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ump-dashboard-main {
        grid-template-columns: 1fr;
    }
    
    .ump-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ump-dashboard-container,
    .ump-add-website-container,
    .ump-website-details {
        padding: 20px;
    }
    
    .ump-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ump-stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ump-websites-grid {
        grid-template-columns: 1fr;
    }
    
    .ump-form-row {
        grid-template-columns: 1fr;
    }
    
    .ump-add-website-form {
        padding: 25px;
    }
    
    .ump-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .ump-stats-summary {
        grid-template-columns: 1fr;
    }
    
    .ump-stat-number {
        font-size: 36px;
    }
    
    .ump-form-actions {
        flex-direction: column;
    }
    
    .ump-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ump-actions {
        flex-direction: column;
    }
    
    .ump-features-grid {
        grid-template-columns: 1fr;
    }
}
/* FORCE TABLE LAYOUT (KILL CARD STYLES) */
.ump-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f172a;
    color: #e5e7eb;
}

.ump-dashboard-table th,
.ump-dashboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #1e293b;
    text-align: center;
    vertical-align: middle;
}

.ump-dashboard-table th {
    background: #020617;
    font-weight: 600;
    text-align: center;
}

.ump-dashboard-table td:first-child {
    text-align: left;
}

.ump-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* REMOVE CARD BEHAVIOR */
.ump-website-card {
    display: none !important;
}
.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #bbb;
    border-top: 2px solid #666;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
