/**
 * Virtual Candles - Admin Styles
 * 
 * @package STstudio\VirtualCandles
 * @since   2.0.0
 */

/* ==========================================================================
   Admin Wrap
   ========================================================================== */

.vc-admin-wrap {
    max-width: 1200px;
}

.vc-admin-wrap h1 {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Dashboard Styles
   ========================================================================== */

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

.vc-stat-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.vc-stat-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.vc-stat-icon {
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.8;
}

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

.vc-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #23282d;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.vc-stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* Letzte Kerzen Sektion */
.vc-recent-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vc-recent-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Quick Actions */
.vc-quick-actions {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
}

.vc-quick-actions h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vc-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vc-action-buttons .button {
    margin: 0;
}

/* ==========================================================================
   Settings Page
   ========================================================================== */

.form-table th h2 {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1.3rem;
    color: #23282d;
    border-bottom: 2px solid #ff6b35;
}

.form-table td fieldset label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-table .description {
    margin-top: 0.5rem;
}

/* Code-Blocks */
.form-table code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
}

/* ==========================================================================
   Tools Page
   ========================================================================== */

.vc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.vc-tool-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
}

.vc-tool-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #23282d;
}

.vc-tool-card p {
    margin-bottom: 1rem;
}

.vc-tool-card .button {
    margin: 0;
}

/* ==========================================================================
   Help Page
   ========================================================================== */

.vc-help-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 2rem;
    max-width: 800px;
}

.vc-help-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #23282d;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.vc-help-content h2:first-child {
    margin-top: 0;
}

.vc-help-content ol,
.vc-help-content ul {
    margin-left: 2rem;
}

.vc-help-content li {
    margin-bottom: 0.5rem;
}

.vc-help-content dl {
    margin: 1rem 0;
}

.vc-help-content dt {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #23282d;
}

.vc-help-content dd {
    margin-left: 0;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Forms Settings
   ========================================================================== */

/* WP Editor Anpassungen */
.vc-admin-wrap .wp-editor-wrap {
    max-width: 600px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 782px) {
    .vc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vc-action-buttons {
        flex-direction: column;
    }
    
    .vc-action-buttons .button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Notices */
.vc-admin-wrap .notice {
    margin: 1rem 0;
}

/* Tables */
.vc-admin-wrap .widefat {
    margin-top: 1rem;
}

.vc-admin-wrap .widefat td,
.vc-admin-wrap .widefat th {
    padding: 8px 10px;
}

/* Primary Color für Links */
.vc-admin-wrap a {
    color: #ff6b35;
}

.vc-admin-wrap a:hover,
.vc-admin-wrap a:focus {
    color: #e85a2a;
}

/* Button Overrides für Primary */
.vc-admin-wrap .button-primary {
    background: #ff6b35;
    border-color: #ff6b35;
}

.vc-admin-wrap .button-primary:hover,
.vc-admin-wrap .button-primary:focus {
    background: #e85a2a;
    border-color: #e85a2a;
}

/* ==========================================================================
   Post Edit Screen für Kerzen
   ========================================================================== */

.post-type-candle #post-body-content {
    margin-bottom: 0;
}

.post-type-candle #titlediv {
    margin-bottom: 20px;
}

/* Meta-Box Styles */
.post-type-candle .postbox .inside {
    padding: 12px;
}

.post-type-candle .postbox .inside label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-type-candle .postbox .inside input[type="text"],
.post-type-candle .postbox .inside textarea {
    width: 100%;
}
