/* CC Mitarbeiterverwaltung - Frontend Styles */

/* Frontend Dashboard Container */
.cc-frontend-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cc-frontend-dashboard h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.cc-frontend-dashboard h3 {
    color: #0073aa;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Dashboard Stats Grid */
.cc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cc-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cc-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.cc-stat-card:hover::before {
    opacity: 1;
}

.cc-stat-card > * {
    position: relative;
    z-index: 2;
}

.cc-stat-card h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.cc-stat-card p {
    margin: 8px 0;
    font-size: 16px;
}

.cc-stat-card strong {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.cc-stat-card small {
    opacity: 0.9;
    font-size: 14px;
}

/* Recent Entries Section */
.cc-recent-entries {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.cc-entries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-entries-list li {
    display: grid;
    grid-template-columns: 100px 120px 1fr 120px;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background-color 0.2s ease;
}

.cc-entries-list li:hover {
    background-color: #f8f9fa;
}

.cc-entries-list li:last-child {
    border-bottom: none;
}

.entry-type {
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.entry-date {
    color: #666;
    font-size: 14px;
}

.entry-title {
    font-weight: 500;
    color: #333;
}

.entry-status {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.entry-status:contains("eingereicht") {
    background: #fff3cd;
    color: #856404;
}

.entry-status:contains("geprüft") {
    background: #d1ecf1;
    color: #0c5460;
}

.entry-status:contains("freigegeben") {
    background: #d4edda;
    color: #155724;
}

/* Alert Styles */
.cc-alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.cc-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.cc-alert h3 {
    margin: 0 0 15px 0;
    color: inherit;
    font-size: 18px;
}

.cc-corrections-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-corrections-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(133, 100, 4, 0.2);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cc-corrections-list li:last-child {
    border-bottom: none;
}

.cc-corrections-list li strong {
    color: #333;
    font-weight: 600;
}

.cc-corrections-list li span {
    font-size: 14px;
    opacity: 0.8;
}

/* Export Links */
.cc-export-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.cc-button {
    display: inline-block;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.cc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,0.4);
    color: white;
    text-decoration: none;
}

.cc-export-links p {
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cc-frontend-dashboard {
        padding: 15px;
    }
    
    .cc-frontend-dashboard h2 {
        font-size: 24px;
    }
    
    .cc-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cc-stat-card {
        padding: 20px;
    }
    
    .cc-stat-card strong {
        font-size: 28px;
    }
    
    .cc-entries-list li {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .entry-type {
        justify-self: center;
        width: fit-content;
    }
    
    .entry-status {
        justify-self: center;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .cc-frontend-dashboard {
        padding: 10px;
    }
    
    .cc-frontend-dashboard h2 {
        font-size: 20px;
    }
    
    .cc-stat-card {
        padding: 15px;
    }
    
    .cc-stat-card strong {
        font-size: 24px;
    }
    
    .cc-recent-entries,
    .cc-export-links {
        padding: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cc-frontend-dashboard {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .cc-frontend-dashboard h2 {
        color: #e0e0e0;
        border-bottom-color: #0073aa;
    }
    
    .cc-frontend-dashboard h3 {
        color: #0073aa;
    }
    
    .cc-recent-entries,
    .cc-export-links {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .cc-entries-list li {
        border-bottom-color: #444;
    }
    
    .cc-entries-list li:hover {
        background-color: #3a3a3a;
    }
    
    .entry-title {
        color: #e0e0e0;
    }
    
    .entry-date {
        color: #aaa;
    }
}

/* Print Styles */
@media print {
    .cc-frontend-dashboard {
        max-width: none;
        padding: 0;
    }
    
    .cc-stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .cc-recent-entries,
    .cc-export-links {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .cc-button {
        display: none;
    }
}

/* Animation Classes */
.cc-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.cc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cc-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 #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
