/*
Theme Name: Kaffee & Code Theme
Theme URI: https://example.com/kaffee-code-theme
Author: Antigravity
Author URI: https://example.com
Description: Ein minimalistisches, dunkles Theme für Automation-Experten.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaffee-code
Tags: dark, minimal, automation
*/

/* 
/*
 * Basis-Styles aus dem Prototyp
 * (Tailwind wird separat geladen)
 */

body {
    background-color: #0c0a09;
    /* stone-950 */
}

/* Main App Container */
#kaffee-app-root {
    font-family: 'Inter', sans-serif;
    /* Theme Mode: Relative positioning instead of fixed overlay */
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #0c0a09;
    color: #e7e5e4;
    line-height: 1.5;
    text-align: left;
}

/* Sidebar Menu Styling */
/* Legal Menu (Footer) */
.sidebar-legal li a {
    color: #57534e;
    /* text-stone-600 */
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-legal li a:hover {
    color: #a8a29e;
    /* text-stone-400 */
    text-decoration: underline;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.75rem;
    /* px-3 py-2.5 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: #a8a29e;
    /* text-stone-400 */
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li.current-menu-item a {
    color: #f5f5f4;
    /* text-stone-100 */
    background-color: #292524;
    /* bg-stone-800 */
}

.sidebar-menu li.current-menu-item a {
    background-color: rgba(245, 158, 11, 0.1);
    /* bg-amber-500/10 */
    color: #f59e0b;
    /* text-amber-500 */
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Fix für WP Admin Bar */
body.admin-bar #kaffee-app-root {
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar #kaffee-app-root {
        height: calc(100vh - 46px);
    }
}

/* Scrollbars Global */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1c1917;
}

::-webkit-scrollbar-thumb {
    background: #44403c;
    border-radius: 3px;
}

/* Markdown / Prose Styles Override */
.prose h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0;
}

.prose p {
    margin-bottom: 1rem;
    color: #a8a29e;
}

.prose a {
    color: #f59e0b;
    text-decoration: underline;
}

.prose pre {
    background: #1c1917;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    color: #f5f5f4;
    font-family: monospace;
    position: relative;
    /* Essential for Copy Button */
}

/* Copy Button Hover Effect */
.prose pre:hover button {
    opacity: 1;
}