/**
 * User Panel CSS
 * Bulk Mail System
 * Kullanıcı paneline özel stiller
 */

/* ============================================
   USER LAYOUT
   ============================================ */

.user-wrapper {
    min-height: 100vh;
    background-color: #f5f7fa;
}

.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.user-header-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.user-header-brand:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.user-header-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.user-header-nav-item {
    position: relative;
}

.user-header-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-header-nav-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.user-header-nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.user-header-nav-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-header-credit {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-header-credit-icon {
    font-size: 1.25rem;
}

.user-header-dropdown {
    position: relative;
}

.user-header-dropdown-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.user-header-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-header-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
}

.user-header-dropdown-menu.show {
    display: block;
}

.user-header-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-header-dropdown-item:last-child {
    border-bottom: none;
}

.user-header-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.user-content {
    padding: 2rem 0;
}

/* ============================================
   USER DASHBOARD
   ============================================ */

.user-dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-dashboard-welcome-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.user-dashboard-welcome-text {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.user-dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.user-stat-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.user-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-stat-card.success {
    border-left-color: #28a745;
}

.user-stat-card.warning {
    border-left-color: #ffc107;
}

.user-stat-card.danger {
    border-left-color: #dc3545;
}

.user-stat-card.info {
    border-left-color: #17a2b8;
}

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

.user-stat-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.user-stat-title {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.user-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.user-stat-change {
    font-size: 0.75rem;
    color: #6c757d;
}

.user-stat-change.positive {
    color: #28a745;
}

.user-stat-change.negative {
    color: #dc3545;
}

/* ============================================
   CAMPAIGN CARDS
   ============================================ */

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.campaign-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.campaign-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.campaign-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.campaign-card-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.campaign-card-body {
    padding: 1.5rem;
}

.campaign-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.campaign-card-stat {
    text-align: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.campaign-card-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.campaign-card-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-card-actions {
    display: flex;
    gap: 0.5rem;
}

.campaign-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.campaign-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campaign-stat-icon {
    font-size: 1.5rem;
}

.campaign-stat-content {
    flex: 1;
}

.campaign-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

.campaign-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

/* ============================================
   CREDIT DISPLAY
   ============================================ */

.user-credit-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.user-credit-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.user-credit-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.user-credit-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.credit-transaction-list {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.credit-transaction-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.credit-transaction-item:hover {
    background-color: #f8f9fa;
}

.credit-transaction-item:last-child {
    border-bottom: none;
}

.credit-transaction-info {
    flex: 1;
}

.credit-transaction-type {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.credit-transaction-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.credit-transaction-amount {
    font-size: 1.25rem;
    font-weight: bold;
}

.credit-transaction-amount.positive {
    color: #28a745;
}

.credit-transaction-amount.negative {
    color: #dc3545;
}

/* ============================================
   CAMPAIGN FORM
   ============================================ */

.campaign-form-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.campaign-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.campaign-form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
}

.campaign-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-list-input {
    min-height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.email-list-preview {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.email-list-preview-item {
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.875rem;
}

.email-list-preview-item:last-child {
    border-bottom: none;
}

.email-list-preview-item.valid {
    color: #28a745;
}

.email-list-preview-item.invalid {
    color: #dc3545;
}

.credit-estimate {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.credit-estimate-label {
    font-size: 0.875rem;
    color: #856404;
    margin-bottom: 0.5rem;
}

.credit-estimate-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #856404;
}

/* ============================================
   STATISTICS CHART
   ============================================ */

.stats-chart-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-chart-header {
    margin-bottom: 1.5rem;
}

.stats-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stats-chart-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}

.stats-chart-container {
    position: relative;
    height: 300px;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-bar.success {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .user-header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-header-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .user-header-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .user-content {
        padding: 1rem 0;
    }
    
    .user-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .campaign-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-form-row {
        grid-template-columns: 1fr;
    }
    
    .user-dashboard-actions {
        flex-direction: column;
    }
    
    .user-dashboard-actions .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.user-page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.user-page-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.user-empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-empty-state-icon {
    font-size: 4rem;
    color: #95a5a6;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.user-empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.user-empty-state-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.user-alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-alert-box-icon {
    font-size: 1.5rem;
    color: #856404;
}

.user-alert-box-content {
    flex: 1;
}

.user-alert-box-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 0.25rem;
}

.user-alert-box-text {
    font-size: 0.875rem;
    color: #856404;
}

