/*
 Theme Name: App Dashboard
 Theme URI: https://app.mustseesf.com/app-dashboard
 Author: Your Name
 Author URI: https://app.mustseesf.com
 Description: 
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: app-dashboard
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */

.app-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

/* Sidebar */

.app-sidebar {
    background: #020617;
    border-right: 1px solid #1f2937;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .04em;
    color: #38bdf8;
    text-transform: uppercase;
}

.app-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.app-nav a {
    display: block;
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: #9ca3af;
    font-size: .9rem;
}

.app-nav a:hover,
.app-nav .current-menu-item > a {
    background: #111827;
    color: #f9fafb;
}

/* Main area */

.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1f2937;
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-topbar-title {
    font-size: 1rem;
    font-weight: 500;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: #9ca3af;
}

/* Content */

.app-content {
    padding: 1.5rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.app-card {
    background: #020617;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #1f2937;
}

.app-card h2,
.app-card h3 {
    font-size: 1rem;
    margin-bottom: .4rem;
}

.app-card p {
    font-size: .9rem;
    color: #9ca3af;
}

/* Posts */

.post-card {
    margin-bottom: 1rem;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.post-card-meta {
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .5rem;
}

/* Sidebar widget */

.widget {
    background: #020617;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #1f2937;
    margin-bottom: 1rem;
}

.widget-title {
    font-size: .95rem;
    margin-bottom: .5rem;
}

/* Footer */

.app-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    font-size: .8rem;
    color: #6b7280;
    border-top: 1px solid #1f2937;
    background: #020617;
}

/* Responsive */

@media (max-width: 768px) {
    .app-wrapper {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .app-nav ul {
        flex-direction: row;
        overflow-x: auto;
    }

    .app-nav a {
        white-space: nowrap;
    }
}
