/* SmartVenteliste Dashboard Styles */
.svl-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
    margin: 0 -20px;
}

.svl-sidebar {
    width: 280px;
    background: white;
    padding: 30px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.svl-sidebar-header {
    padding: 0 10px 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.svl-sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 5px 0;
}

.svl-sidebar-subtitle {
    font-size: 14px;
    color: #999;
}

.svl-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svl-sidebar-nav li {
    margin-bottom: 5px;
}

.svl-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.svl-sidebar-link:hover {
    background: #f8f9fa;
    color: #333;
}

.svl-sidebar-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.svl-sidebar-link svg,
.svl-sidebar-link .icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    font-size: 18px;
}

.svl-notification-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.svl-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.svl-main-content {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
}

.svl-content-section {
    display: none;
}

.svl-content-section.active {
    display: block;
}

.svl-dashboard-header {
    margin-bottom: 40px;
}

.svl-dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.svl-dashboard-header .subtitle {
    color: #666;
    font-size: 16px;
}

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

.svl-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.svl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.svl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.svl-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.svl-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.svl-position-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.svl-renewal-card {
    color: white;
}

.svl-renewal-normal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.svl-renewal-soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.svl-renewal-expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.svl-position-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin: 20px 0;
}

.svl-position-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 10px;
}

.svl-info-card {
    background: white;
}

.svl-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.svl-info-row:last-child {
    border-bottom: none;
}

.svl-info-label {
    color: #666;
    font-size: 14px;
}

.svl-info-value {
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
}

.svl-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.svl-btn-primary {
    background: #667eea;
    color: white;
}

.svl-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.svl-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.svl-btn-secondary:hover {
    background: #e8e8e8;
}

.svl-btn-danger {
    background: #f56565;
    color: white;
}

.svl-btn-danger:hover {
    background: #e53e3e;
}

.svl-btn-full {
    width: 100%;
    margin-top: 15px;
}

.svl-payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svl-payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.svl-payment-date {
    color: #666;
    font-size: 14px;
}

.svl-payment-amount {
    font-weight: 600;
    color: #10b981;
}

.svl-payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.svl-status-completed {
    background: #d1fae5;
    color: #065f46;
}

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

.svl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.svl-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.svl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.svl-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.svl-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svl-modal-close:hover {
    color: #333;
}

.svl-form-group {
    margin-bottom: 20px;
}

.svl-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.svl-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.svl-form-input:focus {
    outline: none;
    border-color: #667eea;
}

.svl-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.svl-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.svl-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.svl-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.svl-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.svl-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.svl-content-section .svl-dashboard-header {
    margin-bottom: 30px;
}

.svl-content-section .svl-dashboard-header h1 {
    text-align: left;
    margin: 0 0 10px 0;
}

.svl-content-section .svl-dashboard-header .subtitle {
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .svl-dashboard {
        flex-direction: column;
    }
    
    .svl-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }
    
    .svl-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .svl-sidebar-nav li {
        flex: 1;
        min-width: 120px;
        margin-bottom: 0;
    }
    
    .svl-sidebar-link {
        padding: 10px;
        font-size: 13px;
        justify-content: center;
    }
    
    .svl-sidebar-link .icon {
        margin-right: 5px;
    }
    
    .svl-sidebar-footer {
        border-top: none;
        margin-top: 10px;
    }
    
    .svl-main-content {
        padding: 20px;
    }
    
    .svl-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .svl-position-number {
        font-size: 56px;
    }
}

/* Payment Method Card Styles */
.svl-payment-method-card {
    border-left: 4px solid #667eea;
}

#svl-payment-setup-container {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#svl-payment-element {
    margin-bottom: 15px;
}

#svl-payment-message {
    font-size: 14px;
}

#svl-payment-message .success {
    color: #10b981;
    padding: 10px;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
}

#svl-payment-message .error {
    color: #ef4444;
    padding: 10px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.svl-payment-method-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
}

.svl-payment-method-info .icon {
    font-size: 32px;
}

.svl-payment-method-info .details {
    flex: 1;
}

.svl-payment-method-info .brand {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.svl-payment-method-info .last4 {
    color: #666;
    font-size: 14px;
}


.svl-status-canceled {
    background: #fee2e2;
    color: #991b1b;
}


/* Logo styling */
.svl-sidebar-logo-img {
    max-width: 200px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .svl-sidebar-logo-img {
        max-width: 150px;
        max-height: 40px;
    }
}