/* Estilos melhorados e modernizados */
:root {
    --primary: #27ae60;
    --primary-dark: #219653;
    --secondary: #2d9cdb;
    --dark: #333;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --danger: #eb5757;
    --success: #6fcf97;
    --warning: #f2c94c;
    --gold: #f2c94c;
    --silver: #e0e0e0;
    --bronze: #b08d57;
    --text-light: #333;
    --text-dark: #f0f0f0;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --card-bg-light: #fff;
    --card-bg-dark: #2c3e50;
    --sidebar-width: 250px;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    --radius: 14px;
    --transition: all 0.3s ease;
    --mobile-font-scale: 0.9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

/* Login Page - Modernizada */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.login-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 35px 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.login-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.login-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.logo {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    position: relative;
    z-index: 2;
}

.logo i {
    font-size: 3rem;
    color: white;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.4);
    margin-top: 15px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.5);
}

.login-message {
    padding: 14px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    display: none;
}

.login-message.error {
    background-color: rgba(235, 87, 87, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
    display: block;
}

/* App Interface - Modernizada */
.app-container {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg-light);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

body.dark-mode .app-container {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.app-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-header .user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.app-content {
    flex: 1;
    padding: 25px 18px;
    overflow-y: auto;
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

body.dark-mode .app-content {
    background-color: var(--bg-dark);
}

/* Menu Mobile Modernizado */
.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    z-index: 100;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .app-nav {
    background-color: #34495e;
    border-top: 1px solid #2c3e50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 5px 8px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.nav-item[data-page="settings"] i {
  margin-bottom: 6px; /* Igual aos outros */
  padding: 5px 5px;
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(39, 174, 96, 0.1);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.nav-item span {
  font-size: 0.7rem;
  margin-top: 2px;
}

.desktop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 200px;
    padding-top: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    z-index: 100;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
}

.sidebar-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 18px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 16px 22px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 15px;
    font-size: 0.9rem;
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.sidebar-item i {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 25px;
}

.sidebar-item span {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Cards e Seções Modernizadas */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    font-weight: 700;
}

body.dark-mode .section-title {
    color: var(--text-dark);
}

.section-title i {
    margin-right: 12px;
    color: var(--primary);
    background: rgba(39, 174, 96, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background-color: var(--card-bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

body.dark-mode .card {
    background-color: var(--card-bg-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

body.dark-mode .card-title {
    color: var(--text-dark);
}

.badge {
    padding: 6px 14px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold), #e6b400);
    color: #333;
    margin-left: 2%;
}

.badge-silver {
    background: linear-gradient(135deg, var(--silver), #bdbdbd);
    color: #333;
    margin-left: 2%;
}

.badge-bronze {
    background: linear-gradient(135deg, var(--bronze), #8d6e3f);
    color: white;
    margin-left: 2%;
}

/* Ranking Modernizado */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.ranking-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

body.dark-mode .ranking-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .ranking-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.position-1 {
    background: linear-gradient(135deg, var(--gold), #e6b400);
    color: #333;
}

.position-2 {
    background: linear-gradient(135deg, var(--silver), #bdbdbd);
    color: #333;
}

.position-3 {
    background: linear-gradient(135deg, var(--bronze), #8d6e3f);
}

.ranking-info {
    flex-grow: 1;
    min-width: 0;
}

.ranking-name {
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
}

.ranking-points {
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.15rem;
    min-width: 90px;
    display: inline-block;
}

/* Novo design para edição de pontos */
.edit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
    margin-left: 15px;
}

.edit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

/* Welcome Section Modernizada */
.welcome-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(33, 150, 83, 0.1));
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
}

.welcome-message {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

body.dark-mode .welcome-message {
    color: var(--text-dark);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.5);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 25px 0;
    text-align: center;
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(33, 150, 83, 0.1));
    padding: 20px 15px;
    border-radius: var(--radius);
    width: 100%;
    min-width: 200px;
    flex: 1;
    border: 1px solid rgba(39, 174, 96, 0.15);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
}

.tip-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tip-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.quick-link {
    background-color: var(--card-bg-light);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

body.dark-mode .quick-link {
    background-color: var(--card-bg-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

.quick-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.quick-link i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: rgba(39, 174, 96, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.quick-link h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.quick-link p {
    font-size: 0.95rem;
    color: var(--gray);
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

body.dark-mode .history-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-date {
    font-weight: 600;
}

.history-value {
    color: var(--primary);
    font-weight: 700;
}

/* Modal Modernizado */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

body.dark-mode .modal-content {
    background-color: var(--card-bg-dark);
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

body.dark-mode .modal-footer {
    background-color: #2c3e50;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .btn-secondary {
    background-color: #34495e;
    color: var(--text-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.message {
    padding: 18px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 0.5s;
    font-size: 1.1rem;
}

.message-success {
    background-color: rgba(111, 207, 151, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.message-error {
    background-color: rgba(235, 87, 87, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Configurações Modernizadas */
.settings-item {
    display: flex;
    align-items: center;
    padding: 25px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    margin-bottom: 12px;
}

.settings-item:hover {
    background-color: rgba(39, 174, 96, 0.08);
}

body.dark-mode .settings极客时间
body.dark-mode .settings-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .settings-item:hover {
    background-color: rgba(39, 174, 96, 0.15);
}

.settings-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 22px;
}

.settings-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.settings-info {
    flex-grow: 1;
    min-width: 0;
}

.settings-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.settings-desc {
    font-size: 1rem;
    color: var(--gray);
}

.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Paginação Modernizada */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.pagination-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.pagination-btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 600;
    color: var(--gray);
}

/* Modal de Edição de Pontos */
.points-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.points-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.points-btn.minus {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.points-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
}

.points-input {
    width: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    background-color: #f9f9f9;
}

body.dark-mode .points-input {
    background-color: #2c3e50;
    border-color: #3a506b;
    color: var(--text-dark);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsividade */
@media (min-width: 768px) {
    /* Esconder menu mobile em desktop */
    .app-nav {
        display: none;
    }
    
    /* Mostrar sidebar em desktop */
    .desktop-sidebar {
        display: flex;
    }
    
    /* Ajustar layout do app para desktop */
    .app-container {
        margin-left: 200px;
        max-width: calc(100% - 200px);
        width: auto;
    }
    
    .app-content {
        padding-bottom: 25px;
    }
    
    /* Centralizar conteúdo em desktop */
    .container.app-container {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    /* Esconder sidebar em mobile */
    .desktop-sidebar {
        display: none !important;
    }
    
    /* Mostrar menu mobile */
    .app-nav {
        display: flex !important;
    }
    
    /* Ajustar padding para o menu mobile */
    .app-content {
        padding-bottom: 80px;
    }
}

@media (min-width: 1400px) {
    .app-container {
        max-width: 1200px !important;
    }
}

@media (min-width: 992px) {
  .app-container {
    max-width: 80%;
    margin: 0 20vh auto;
  }
  
  .desktop-sidebar {
    width: 15%;
  }
  
  .app-content {
    padding-left: 2%;
    padding-right: 2%;
  }
}
/* Adicionar no final do CSS */
.settings-item {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    margin-bottom: 12px;
}

/* Melhorar alinhamento do switch */
.settings-item .switch {
    margin-left: auto;
    min-width: 55px;
}

/* Ajustar tamanho do slider */
.slider:before {
    height: 20px;
    width: 20px;
    bottom: 4px;
}

/* Corrigir texto sobreposto no modo escuro */
body.dark-mode .settings-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Melhorar espaçamento nos itens de configuração */
.settings-info {
    flex-grow: 1;
    min-width: 0;
    padding-right: 15px;
}

/* Botão de edição */
.edit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.edit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Modal de edição */
.modal-body {
    padding: 25px;
}

.points-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.points-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-input {
    width: 120px;
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
}

/* Destaque para o usuário atual */
.ranking-item.current-user {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--primary);
}

/* Estilo para botões de pontos */
.points-btn.minus {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.points-btn.plus {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Adicione esta classe */
.hidden {
  display: none !important;
}

/* Corrija o alinhamento do ícone de configurações */
.nav-item[data-page="settings"] i {
  margin-bottom: 6px;
  padding: 0; /* Remova o padding extra */
}