/* WRO Monthly Reports - Admin Styles */

.kdsamref-monthly-reports {
    margin: auto auto;
    padding: 20px;
    max-width: 1200px;
}

.kdsamref-header {
    background: #f8f9fa;
    color: #fff;
    padding: 30px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    text-align: center;
}

.kdsamref-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    color: black;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.kdsamref-subtitle {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.8;
    color: black;
    font-weight: 300;
}

.kdsamref-month-selector {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 0 0 30px 0;
}

.kdsamref-filter-row {
    display: flex;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.kdsamref-filter-item {
    flex: 1;
    min-width: 200px;
}

.kdsamref-filter-item label {
    display: block;
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

.kdsamref-filter-item input[type="month"],
.kdsamref-filter-item select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.kdsamref-filter-item .button {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.kdsamref-filter-item .button:hover {
    background: #2563eb;
}

.kdsamref-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 0 30px 0;
}

.kdsamref-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kdsamref-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.kdsamref-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.kdsamref-number {
    font-size: 2.2em;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1;
}

.kdsamref-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 400;
}

.kdsamref-detailed-table {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 0 0 30px 0;
}

.kdsamref-detailed-table h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 500;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.kdsamref-detailed-table table {
    width: 100%;
    border-collapse: collapse;
}

.kdsamref-detailed-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kdsamref-detailed-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.kdsamref-detailed-table tr:hover {
    background: #f8f9fa;
}

.kdsamref-detailed-table tr:last-child td {
    border-bottom: none;
}

.kdsamref-current-month {
    background: #f0f8ff !important;
}

.kdsamref-current-badge {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kdsamref-evolution-up {
    color: #28a745;
    font-weight: 500;
}

.kdsamref-evolution-down {
    color: #dc3545;
    font-weight: 500;
}

.kdsamref-footer {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.kdsamref-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.kdsamref-footer-left p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.9em;
}

.kdsamref-footer-left p:first-child {
    font-weight: 500;
    color: #333;
}

.kdsamref-footer-tagline {
    font-style: italic;
    opacity: 0.7;
}

.kdsamref-footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kdsamref-footer-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.kdsamref-footer-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.kdsamref-swiss-label {
    background: #fff;
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid #ddd;
}

.kdsamref-footer a {
    color: #0073aa;
    text-decoration: none;
}

.kdsamref-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kdsamref-reports-grid {
        grid-template-columns: 1fr;
    }
    
    .kdsamref-header h1 {
        font-size: 1.8em;
    }
    
    .kdsamref-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .kdsamref-filter-item {
        min-width: auto;
    }
    
    .kdsamref-filter-item .button {
        width: 100%;
    }
    
    .kdsamref-detailed-table {
        overflow-x: auto;
    }
    
    .kdsamref-detailed-table table {
        min-width: 600px;
    }
    
    .kdsamref-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .kdsamref-footer-right {
        justify-content: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .kdsamref-card,
    .kdsamref-detailed-table,
    .kdsamref-month-selector {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .kdsamref-month-selector {
        background: #1a202c;
    }
    
    .kdsamref-filter-item label {
        color: #e2e8f0;
    }
    
    .kdsamref-filter-item input[type="month"],
    .kdsamref-filter-item select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .kdsamref-filter-item .button {
        background: #e2e8f0;
        color: #1a202c;
    }
    
    .kdsamref-filter-item .button:hover {
        background: #cbd5e0;
    }
    
    .kdsamref-detailed-table th {
        background: #1a202c;
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .kdsamref-detailed-table td {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .kdsamref-detailed-table tr:hover {
        background: #1a202c;
    }
    
    .kdsamref-current-month {
        background: #2c5282 !important;
    }
    
    .kdsamref-current-badge {
        background: #3182ce;
    }
    
    .kdsamref-footer {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .kdsamref-footer-left p {
        color: #a0aec0;
    }
    
    .kdsamref-footer-left p:first-child {
        color: #e2e8f0;
    }
    
    .kdsamref-footer-tagline {
        color: #a0aec0;
    }
    
    .kdsamref-footer-link {
        color: #63b3ed;
    }
    
    .kdsamref-footer-link:hover {
        color: #90cdf4;
    }
    
    .kdsamref-swiss-label {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .kdsamref-footer a {
        color: #63b3ed;
    }
}

/* Upgrade Page Styles */
.kdsamref-monthly-reports-upgrade {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kdsamref-upgrade-header {
    background: #3b82f6;
    color: #fff;
    padding: 40px;
    margin: 0 0 30px 0;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kdsamref-upgrade-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.kdsamref-upgrade-icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.kdsamref-upgrade-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.kdsamref-upgrade-subtitle {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.kdsamref-upgrade-content {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.kdsamref-upgrade-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.kdsamref-upgrade-features {
    padding: 40px;
}

.kdsamref-upgrade-features h2 {
    margin: 0 0 30px 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.kdsamref-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.kdsamref-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kdsamref-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kdsamref-feature-icon {
    font-size: 2em;
    flex-shrink: 0;
    margin-top: 5px;
}

.kdsamref-feature-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.kdsamref-feature-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.9em;
}

.kdsamref-upgrade-cta {
    background: #3b82f6;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.kdsamref-cta-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.kdsamref-cta-content p {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.kdsamref-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.kdsamref-cta-button {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: all 0.2s ease;
    display: inline-block;
}

.kdsamref-cta-primary {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.kdsamref-cta-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.kdsamref-cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.kdsamref-cta-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.kdsamref-upgrade-preview {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.kdsamref-upgrade-preview h3 {
    margin: 0 0 30px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.kdsamref-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.kdsamref-preview-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    opacity: 0.6;
    position: relative;
}

.kdsamref-preview-card::before {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    opacity: 0.5;
}

.kdsamref-preview-header h4 {
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 500;
    color: #666;
}

.kdsamref-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.kdsamref-preview-number {
    font-size: 2em;
    font-weight: 600;
    color: #999;
}

.kdsamref-preview-label {
    font-size: 0.8em;
    color: #999;
    font-weight: 400;
}

/* Responsive Design for Upgrade Page */
@media (max-width: 768px) {
    .kdsamref-upgrade-header {
        padding: 30px 20px;
    }
    
    .kdsamref-upgrade-header h1 {
        font-size: 2em;
    }
    
    .kdsamref-feature-list {
        grid-template-columns: 1fr;
    }
    
    .kdsamref-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .kdsamref-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .kdsamref-cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .kdsamref-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode Support for Upgrade Page */
@media (prefers-color-scheme: dark) {
    .kdsamref-upgrade-card,
    .kdsamref-upgrade-preview {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .kdsamref-feature-item {
        background: #1a202c;
    }
    
    .kdsamref-feature-text h3 {
        color: #e2e8f0;
    }
    
    .kdsamref-feature-text p {
        color: #a0aec0;
    }
    
    .kdsamref-upgrade-preview h3 {
        color: #e2e8f0;
    }
    
    .kdsamref-preview-card {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .kdsamref-preview-header h4 {
        color: #a0aec0;
    }
} 