/* Yawend PCM Partner Dashboard Styles */

.yawend-partner-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.yawend-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.yawend-dashboard-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 300;
}

.yawend-user-roles {
    margin-top: 15px;
}

.yawend-role-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 14px;
    font-weight: 500;
}

/* Shared Information Section */
.yawend-shared-info {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.yawend-shared-info h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

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

.yawend-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yawend-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.yawend-card-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.yawend-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.yawend-card-label {
    color: #6c757d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payout Information */
.yawend-payout-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.yawend-payout-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
}

.yawend-payout-details p {
    margin: 8px 0;
}

/* Role-Specific Sections */
.yawend-role-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.yawend-role-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.yawend-role-section h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #495057;
}

/* Affiliate Link Section */
.yawend-affiliate-link-section {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.yawend-link-display {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.yawend-affiliate-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    background: #fff;
}

.yawend-copy-link {
    white-space: nowrap;
}

.yawend-link-help {
    margin: 10px 0 0 0;
    color: #0056b3;
    font-style: italic;
}

/* Tables */
.yawend-table-responsive {
    overflow-x: auto;
    margin: 15px 0;
}

.yawend-commissions-table,
.yawend-customers-table,
.yawend-team-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.yawend-commissions-table th,
.yawend-commissions-table td,
.yawend-customers-table th,
.yawend-customers-table td,
.yawend-team-table th,
.yawend-team-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.yawend-commissions-table th,
.yawend-customers-table th,
.yawend-team-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.yawend-commissions-table tbody tr:hover,
.yawend-customers-table tbody tr:hover,
.yawend-team-table tbody tr:hover {
    background: #f8f9fa;
}

/* Training Type Badges */
.yawend-training-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.yawend-training-type.yawend-online {
    background: #e3f2fd;
    color: #1976d2;
}

.yawend-training-type.yawend-inperson {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Status Badges */
.yawend-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.yawend-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.yawend-status-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Team Performance Cards */
.yawend-performance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.yawend-performance-card {
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.yawend-performance-card .yawend-card-value {
    color: #3498db;
}

/* Kosmetikerin Welcome */
.yawend-welcome-message {
    text-align: center;
    padding: 20px;
}

.yawend-assigned-contact {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.yawend-contact-card {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.yawend-benefits {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.yawend-benefits ul {
    list-style: none;
    padding: 0;
}

.yawend-benefits li {
    margin: 8px 0;
    font-size: 16px;
}

/* No Assignments Message */
.yawend-no-assignments {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #6c757d;
    font-style: italic;
}

/* Quick Actions */
.yawend-quick-actions {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.yawend-quick-actions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.yawend-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yawend-action-buttons .button {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 12px 20px;
    font-weight: 500;
}

/* Notices */
.yawend-notice {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

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

.yawend-notice p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yawend-partner-dashboard {
        padding: 10px;
    }
    
    .yawend-dashboard-header {
        padding: 20px;
    }
    
    .yawend-dashboard-header h2 {
        font-size: 24px;
    }
    
    .yawend-info-cards {
        grid-template-columns: 1fr;
    }
    
    .yawend-role-section {
        padding: 20px;
    }
    
    .yawend-link-display {
        flex-direction: column;
    }
    
    .yawend-affiliate-input {
        margin-bottom: 10px;
    }
    
    .yawend-action-buttons {
        flex-direction: column;
    }
    
    .yawend-action-buttons .button {
        min-width: auto;
    }
    
    .yawend-performance-cards {
        grid-template-columns: 1fr;
    }
    
    .yawend-table-responsive {
        font-size: 14px;
    }
    
    .yawend-commissions-table th,
    .yawend-commissions-table td,
    .yawend-customers-table th,
    .yawend-customers-table td,
    .yawend-team-table th,
    .yawend-team-table td {
        padding: 8px 10px;
    }
}

/* Animation for cards */
.yawend-info-card,
.yawend-performance-card {
    animation: fadeInUp 0.6s ease-out;
}

.yawend-info-card:nth-child(1) { animation-delay: 0.1s; }
.yawend-info-card:nth-child(2) { animation-delay: 0.2s; }
.yawend-info-card:nth-child(3) { animation-delay: 0.3s; }
.yawend-info-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Loading states */
.yawend-loading {
    opacity: 0.6;
    pointer-events: none;
}

.yawend-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print styles */
@media print {
    .yawend-partner-dashboard {
        max-width: none;
    }
    
    .yawend-dashboard-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .yawend-action-buttons {
        display: none;
    }
    
    .yawend-copy-link {
        display: none;
    }
}