/* Google Fonts - Source Sans Pro */
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700');

:root {
    /* AdminLTE Colors */
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;

    --sidebar-bg: #343a40;
    --sidebar-color: #c2c7d0;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: #007bff;
    --sidebar-active-color: #fff;

    --body-bg: #f4f6f9;
    --text-color: #212529;
    --border-color: #dee2e6;

    --sidebar-width: 250px;
    --header-height: 57px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------------------------------------------------
    LOGIN PAGE
----------------------------------------------------- */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.login-box {
    width: 360px;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: 0.25rem;
    padding: 0;
}

.login-logo {
    font-size: 2.1rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0;
    padding: 20px;
}

.login-card-body {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, .125);
}

.login-box-msg {
    margin: 0;
    text-align: center;
    padding: 0 20px 20px 20px;
    color: #666;
}

/* ---------------------------------------------------
    LAYOUT
----------------------------------------------------- */
.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Navbar */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    transition: left var(--transition-speed);
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
}

.nav-link {
    color: rgba(0, 0, 0, .5);
    text-decoration: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: rgba(0, 0, 0, .7);
}

/* Sidebar */
.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
    transition: margin-left var(--transition-speed);
    z-index: 1030;
    overflow-y: auto;
}

.brand-link {
    display: block;
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 1.25rem;
    font-weight: 300;
    padding: 0 1.5rem;
    color: rgba(255, 255, 255, .8);
    border-bottom: 1px solid #4b545c;
    text-decoration: none;
    transition: width var(--transition-speed);
    white-space: nowrap;
}

.brand-link:hover {
    color: #fff;
}

.brand-link .brand-image {
    float: left;
    line-height: .8;
    margin-left: .8rem;
    margin-right: .5rem;
    margin-top: -3px;
    max-height: 33px;
    width: auto;
}

.sidebar-content {
    padding: 0 0.5rem;
}

.user-panel {
    position: relative;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #4f5962;
    margin-bottom: 1rem;
}

.user-panel .image {
    padding-left: 0.8rem;
}

.user-panel img {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    object-fit: cover;
}

.user-panel .info {
    padding: 0 5px 0 10px;
    color: #c2c7d0;
    white-space: nowrap;
    overflow: hidden;
}

.nav-sidebar {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.2rem;
}

.nav-link-sidebar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-color);
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link-sidebar i {
    width: 1.6rem;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 0.5rem;
}

.nav-link-sidebar:hover {
    background-color: var(--sidebar-hover-bg);
    color: #fff;
}

.nav-link-sidebar.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
}

/* Content Wrapper */
.content-wrapper {
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    transition: margin-left var(--transition-speed);
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
}

.content-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 400;
}

/* ---------------------------------------------------
    COMPONENTS
----------------------------------------------------- */

/* Cards */
.card {
    background: #fff;
    border: 0 solid rgba(0, 0, 0, .125);
    border-radius: 0.25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: 0.75rem 1.25rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* Info Boxes (Widgets) */
.info-box {
    min-height: 80px;
    background: #fff;
    width: 100%;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    display: flex;
    padding: 0.5rem;
}

.info-box-icon {
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background-color: rgba(0, 0, 0, .125);
    width: 70px;
    flex-shrink: 0;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.8;
    padding: 0 10px;
    flex: 1;
    overflow: hidden;
}

.info-box-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 14px;
}

.info-box-number {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Colors for Utilities */
.bg-primary {
    background-color: var(--primary) !important;
    color: #fff;
}

.bg-success {
    background-color: var(--success) !important;
    color: #fff;
}

.bg-info {
    background-color: var(--info) !important;
    color: #fff;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: #1f2d3d;
}

.bg-danger {
    background-color: var(--danger) !important;
    color: #fff;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #1f2d3d;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn:hover {
    filter: brightness(90%);
}

.btn:disabled {
    opacity: 0.65;
    cursor: default;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

/* ---------------------------------------------------
    RESPONSIVE sidebar
----------------------------------------------------- */

@media (max-width: 991.98px) {
    .main-sidebar {
        transform: translate(-100%);
        box-shadow: none;
    }

    .main-header,
    .content-wrapper {
        margin-left: 0;
        left: 0;
    }

    body.sidebar-open .main-sidebar {
        transform: translate(0);
        box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
    }

    body.sidebar-open .content-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}