/* Global layout */

body {
    background-color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.navbar,
footer {
    background-color: #f8fafc !important;
}

.card {
    background-color: #f8fafc;
}

.text-secondary {
    color: #495057 !important;
}

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

#app main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.brand-font {
    font-family: "Playwrite DK Loopet", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Navbar active-link styling */

.navbar-nav .nav-link.active {
    color: #0d6efd;
    font-weight: 700;
    position: relative;
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.1rem;
    height: 2px;
    background: #0d6efd;
    border-radius: 1px;
}

.navbar-nav .dropdown-menu {
    font-size: 0.9rem;
}

.navbar-nav .dropdown-item.active {
    font-weight: 600;
}

.laravel-nav-dropdown .dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (min-width: 768px) {
    .laravel-nav-dropdown {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.active::before {
        content: none;
    }

    .navbar-nav .dropdown-toggle.active {
        color: #0d6efd;
        font-weight: 700;
    }

    .navbar-nav .dropdown-toggle.active + .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        background: transparent;
    }

    .navbar-nav .dropdown-item.active {
        font-weight: 700;
        color: #0d6efd;
        background-color: transparent;
    }
}

/* Shared tool-page styling */

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
}

.mono {
    font-family: 'Consolas', 'Courier New', monospace;
}

.empty-state {
    color: #5c636a;
}

.drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.drop-zone.drag-over {
    border-color: #0d6efd;
    background: #eaf2ff;
}

.copy-flash {
    animation: copyFlash 0.6s ease;
}

@keyframes copyFlash {
    0% {
        background-color: #d1e7dd;
    }

    100% {
        background-color: transparent;
    }
}

.status-tile {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.status-tile-found {
    background: #f8d7da;
    color: #842029;
}

.status-tile-missing {
    background: #d1e7dd;
    color: #0f5132;
}

/* Tool/topic card grids (welcome page, section index pages) */

.tool-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tool-card {
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.tool-card-link:hover .tool-card,
.tool-card-link:focus .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.12);
    border-color: #cfe2ff;
}

.tool-title {
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

/* Laravel reference pages */

.doc-nav .nav-link {
    color: #495057;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.doc-nav .nav-link:hover {
    background: #eef1f5;
}

.doc-nav .nav-link.active {
    background: #eaf2ff;
    color: #0d6efd;
    font-weight: 600;
}

.doc-nav-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5c636a;
    padding: 0.75rem 0.75rem 0.25rem;
}

.doc-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.doc-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.doc-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.doc-content p {
    margin-bottom: 0.75rem;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 0.75rem;
}

.doc-content pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.doc-content :not(pre) > code {
    background: #f1f3f5;
    color: #c7254e;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

.doc-content table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.doc-content table th {
    text-align: left;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    padding: 0.4rem 0.6rem;
}

.doc-content table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: top;
}
