/* ========================================= */
/* IMPORTS */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ========================================= */
/* VARIÁVEIS */
/* ========================================= */
:root {
    --primary-color: #b66dff;
    --secondary-color: #1f2c38;
    --success-color: #1bcfb4;
    --warning-color: #fed713;
    --danger-color: #fe7c96;
    --info-color: #8862e0;
    --purple-color: #b66dff;
}

/* ========================================= */
/* RESET E BASE */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #343a40;
    background: #f4f5f7;
}

/* ========================================= */
/* LOGIN PAGE (mantido do original) */
/* ========================================= */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1f2c38, #2c3e50);
    min-height: 100vh;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-left {
    flex: 1;
    overflow: hidden;
}

.logo-container {
    width: 100%;
    height: 100%;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 60px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 35px;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1a1a1a;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    font-size: 15px;
    transition: 0.25s;
}

input:focus {
    outline: none;
    border-color: #cbb88c;
    background: white;
    box-shadow: 0 0 0 4px rgba(203, 184, 140, 0.25);
}

.input-group-checkbox {
    margin: 18px 0 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2c3e50, #3b556e);
    transition: 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(44, 62, 80, 0.35);
}

.error, .success {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 18px;
    display: none;
}

.error {
    background: #ffeaea;
    border: 1px solid #ffbcbc;
    color: #e74c3c;
}

.success {
    background: #eaffea;
    border: 1px solid #b6ffb6;
    color: #27ae60;
}

/* ========================================= */
/* DASHBOARD LAYOUT */
/* ========================================= */
.container-scroller {
    overflow: hidden;
}

/* Navbar */
.navbar.default-layout-navbar {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 63px;
}

.navbar-brand-wrapper {
    width: 255px;
    height: 63px;
    border-right: 1px solid #e8ecf1;
}

.navbar-brand-wrapper img {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.navbar-menu-wrapper {
    padding-left: 24px;
    padding-right: 24px;
}

.navbar-menu-wrapper h5 {
    font-weight: 500;
    margin: 0;
    color: #343a40;
}

.navbar-nav-right {
    margin-left: auto;
}

.nav-item.dropdown {
    position: relative;
}

.count-indicator {
    position: relative;
    text-align: center;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.count-indicator:hover {
    background: #f4f5f7;
}

.count-indicator i {
    font-size: 20px;
    color: #6c757d;
}

.count-indicator .count {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.user-dropdown .dropdown-menu {
    min-width: 250px;
    border: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #e8ecf1;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f4f5f7;
}

.dropdown-item-icon {
    font-size: 1.125rem;
    vertical-align: middle;
}

/* Main Panel */
.page-body-wrapper {
    min-height: calc(100vh - 63px);
    padding-top: 63px;
}

.main-panel {
    width: 100%;
    transition: width 0.25s ease, margin 0.25s ease;
}

.content-wrapper {
    background: #f4f5f7;
    padding: 2.75rem 2.25rem;
    width: 100%;
    flex-grow: 1;
}

/* Cards */
.card {
    border: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #343a40;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Stats Cards */
.card-statistics {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-statistics .card-body {
    padding: 1.5rem;
}

.statistics-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.rate-percentage {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0;
}

.icon-lg {
    font-size: 3rem;
    opacity: 0.3;
}

.text-purple { color: var(--purple-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* Session Info */
.session-info-item {
    padding: 1rem;
    background: #f4f5f7;
    border-radius: 0.25rem;
}

.session-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.session-value {
    font-size: 0.875rem;
    color: #343a40;
    font-weight: 500;
    word-break: break-all;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 1rem;
    background: #f4f5f7;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.bg-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-icon.bg-success {
    background: linear-gradient(135deg, #1bcfb4 0%, #17a589 100%);
}

.activity-icon.bg-warning {
    background: linear-gradient(135deg, #fed713 0%, #dbb10e 100%);
}

.activity-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.activity-content p {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Grid */
.grid-margin {
    margin-bottom: 1.875rem;
}

.stretch-card {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.stretch-card > .card {
    width: 100%;
    min-width: 100%;
}

/* Utilities */
.font-weight-medium {
    font-weight: 500;
}

.font-weight-semibold {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-brand-wrapper {
        width: 70px;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        height: 200px;
    }
    
    .login-right {
        padding: 40px 20px;
    }
}