/* SkillLock Bootstrap3 Fixes */

/* Fix navbar spacing */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
}

body {
    padding-top: 50px; /* For fixed navbar */
}

/* Main content spacing */
#dokuwiki__site {
    padding: 20px 0;
}

.container {
    max-width: 1200px;
}

/* Fix page content */
#dokuwiki__content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Fix badges errors */
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

/* Fix sidebar on mobile */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .navbar-fixed-top {
        position: static;
    }

    #dokuwiki__aside {
        margin-bottom: 20px;
    }
}

/* Fix footer */
#dokuwiki__footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: #777;
    text-align: center;
}

/* Fix edit buttons */
.secedit button {
    margin-bottom: 10px;
}

/* Fix OAuth login button */
.oauth-login {
    margin: 20px 0;
}

.oauth-login a {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6600;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.oauth-login a:hover {
    background: #e55500;
}

/* Fix table styles */
table.inline {
    width: 100%;
    margin: 20px 0;
}

table.inline th {
    background: #f5f5f5;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ddd;
}

table.inline td {
    padding: 8px;
    border: 1px solid #ddd;
}

/* Fix code blocks */
pre {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 90%;
}
/* Fix Logo Display */
#dw__logo {
    max-height: 40px;
    width: auto;
    display: inline-block !important;
    vertical-align: middle;
}

/* Navbar Logo Container Fix */
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* ====== SkillLock Corporate Design Colors ====== */

/* Primary Blue: #2196F3 */
/* Accent Orange: #FF5722 */

/* Navbar - SkillLock Blue */
.navbar-default {
    background-color: #2196F3 !important;
    border-color: #1976D2 !important;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
    color: #fff !important;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-nav > li > a:hover {
    color: #FF5722 !important;
    background-color: rgba(255, 87, 34, 0.1) !important;
}

/* Buttons - SkillLock Colors */
.btn-primary {
    background-color: #2196F3;
    border-color: #1976D2;
}

.btn-primary:hover {
    background-color: #1976D2;
    border-color: #1565C0;
}

.btn-success {
    background-color: #FF5722;
    border-color: #E64A19;
}

.btn-success:hover {
    background-color: #E64A19;
    border-color: #D84315;
}

/* Links - SkillLock Blue */
a {
    color: #2196F3;
}

a:hover {
    color: #FF5722;
}

/* Panels & Headers */
.panel-default > .panel-heading {
    background-color: #2196F3;
    color: white;
    border-color: #1976D2;
}

/* Page Tools */
.dw-page-tools a {
    color: #2196F3;
}

.dw-page-tools a:hover {
    color: #FF5722;
}

/* Breadcrumbs */
.breadcrumb > li > a {
    color: #2196F3;
}

/* TOC (Table of Contents) */
#dw__toc h3 {
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
}

#dw__toc a:hover {
    color: #FF5722;
}

/* Forms & Inputs */
.form-control:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Labels & Badges */
.label-primary {
    background-color: #2196F3;
}

.badge {
    background-color: #FF5722;
}

/* Active Navigation */
.navbar-default .navbar-nav > .active > a {
    background-color: rgba(255, 87, 34, 0.1) !important;
    color: #FF5722 !important;
}

/* Search Box */
.navbar-form .form-control {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-form .form-control:focus {
    border-color: #FF5722;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

/* Footer */
#dw__footer {
    border-top: 3px solid #2196F3;
}

/* Edit Buttons */
.secedit button {
    background-color: #2196F3;
    border-color: #1976D2;
    color: white;
}

.secedit button:hover {
    background-color: #FF5722;
    border-color: #E64A19;
}

/* Alert Messages */
.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
    color: #1976D2;
}

.alert-success {
    background-color: rgba(255, 87, 34, 0.1);
    border-color: #FF5722;
    color: #E64A19;
}
