/* ==========================================================================
   VPS Bugs — Minimal companion styles for Bootstrap 3
   ========================================================================== */

/* ---------- Global ---------- */
body {
    padding-top: 50px;
    background-color: #f5f5f5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #333;
}

.main-content {
    padding: 15px 25px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ---------- Login / Register ---------- */
.login-container {
    margin-top: 60px;
}

.login-header {
    margin-bottom: 25px;
}

.login-header h2 {
    margin-top: 12px;
    margin-bottom: 4px;
}

/* ---------- Page Header Bar ---------- */
.page-header-bar {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.page-header-bar h3 {
    margin: 0;
}

.page-header-bar h3 small {
    font-size: 14px;
}

/* ---------- Filter Panel ---------- */
.panel-filters .form-group {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* ---------- Bug Table ---------- */
.bug-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bug-table tbody tr:hover {
    background-color: #f0f8ff !important;
}

.bug-table .col-id {
    width: 60px;
}

.bug-table .col-status,
.bug-table .col-priority,
.bug-table .col-severity {
    width: 100px;
    text-align: center;
}

.bug-table .col-user {
    width: 120px;
}

.bug-table .col-date {
    width: 100px;
}

.bug-title {
    max-width: 350px;
}

/* ---------- Priority Badges (color-coded per spec) ---------- */
.priority-blocker {
    background-color: #d9534f !important;
}

.priority-critical {
    background-color: #f0ad4e !important;
}

.priority-major {
    background-color: #f7c948 !important;
}

.priority-minor {
    background-color: #337ab7 !important;
}

.priority-trivial {
    background-color: #999 !important;
}

/* ---------- Comments ---------- */
.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item p {
    margin: 6px 0 0;
}

/* ---------- Activity Log ---------- */
.activity-item {
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 13px;
}

.activity-item:last-child {
    border-bottom: none;
}

/* ---------- Flash Messages ---------- */
.flash-messages {
    margin-bottom: 15px;
}

/* ---------- Bug Detail Sidebar ---------- */
.detail-sidebar-table .detail-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 110px;
    vertical-align: middle;
}

.detail-sidebar-table td {
    vertical-align: middle;
    padding: 8px 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }

    .bug-title {
        max-width: 200px;
    }

    .panel-filters .form-group .form-control {
        width: 100%;
    }

    .form-inline .form-group {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .form-inline .form-control {
        width: 100% !important;
    }

    .navbar-brand {
        max-width: 80%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .text-left-xs {
        text-align: left !important;
    }

    .mt-xs-10 {
        margin-top: 10px !important;
    }

    .mb-xs-10 {
        margin-bottom: 10px !important;
    }

    .btn-responsive {
        margin-top: 8px;
        margin-left: 0 !important;
        margin-right: 5px;
    }
}

.bug-actions {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.bug-actions .btn {
    margin-left: 5px;
}

@media (max-width: 767px) {
    .bug-actions {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
    .bug-actions .btn {
        margin-left: 0;
        margin-right: 5px;
        margin-bottom: 5px;
    }
}


/* ---------- Logo Styles ---------- */
.custom-logo {
    vertical-align: middle;
}

.navbar-brand .custom-logo {
    margin-right: 5px;
}

.login-header .custom-logo {
    display: block;
    margin: 0 auto 15px;
}

/* ---------- Classic Signin Template ---------- */
.form-signin {
    max-width: 360px;
    padding: 25px;
    margin: 60px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-signin .form-signin-heading {
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[name="username"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[name="password"] {
    margin-bottom: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-signin .logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.form-signin .logo-container img,
.form-signin .logo-container i {
    display: block;
    margin: 0 auto;
}

.form-signin .logo-container img {
    max-height: 70px;
}

/* ---------- Global Footer ---------- */
.global-footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    color: #777;
    background-color: #fff;
}

.global-footer p {
    margin-bottom: 5px;
}

.global-footer a {
    color: #428bca;
    text-decoration: none;
}

.global-footer a:hover {
    text-decoration: underline;
}

.global-footer.footer-login {
    margin-top: -20px;
    padding: 0 0 40px;
    background-color: transparent;
    border-top: none;
}
