/* CSS Variables */
:root {
    --primary-color: #1e40af;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #3b82f6;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Reset and Base Styles */
* {
    margin: 0;
    box-sizing: border-box;
}

/* Header Components */
.cabecalho {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
}

.logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3ea7 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

/* Search Form */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-form {
    display: grid;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #1e40af;
}

/* Filters */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.filter-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filter-group h4 {
    margin-bottom: 15px;
    color: #1e40af;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-favoritado {
    background: #dc3545;
}

/* Activity Cards */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.activity-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity-title {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.activity-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.meta-tag {
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.activity-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Forum */
.forum-post {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
}

.post-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 5px 0;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-actions {
        flex-direction: column;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-section {
        padding: 20px;
    }
    
    /* Form responsive adjustments */
    
    .form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-container {
        margin: 10px;
        padding: 20px;
    }
    

    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 19px;
    }
    
    .activity-card {
        padding: 15px;
    }
    
    .forum-post {
        padding: 15px;
    }
    
    /* Melhorias específicas para smartphones */
    .form-container {
        padding: 15px;
        margin: 5px;
    }
    

     
     .form-group {
         margin-bottom: 15px;
     }
     
     .form-group label {
         font-size: 16px;
         margin-bottom: 8px;
         display: block;
     }
    
    .form-control {
         padding: 15px;
         font-size: 16px; /* Evita zoom no iOS */
         min-height: 50px; /* Garante altura mínima para melhor toque */
     }
     
     select.form-control {
         height: 50px; /* Altura específica para selects */
     }
    
    /* Ajustes específicos para campos de senha em mobile */
    .password-input-container {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-height: 50px !important;
    }
    
    .password-input-container input.form-control {
        width: 100% !important;
        padding-right: 50px !important;
        box-sizing: border-box !important;
        min-height: 50px !important;
        font-size: 16px !important;
        border: 1px solid #ddd !important;
    }
    
    .password-toggle {
        position: absolute !important;
        top: 1px !important;
        right: 1px !important;
        width: 48px !important;
        height: 48px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        color: #666 !important;
        z-index: 1001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 4px 4px 0 !important;
    }

    
    .form-actions {
        gap: 10px;
    }
    
    .btn {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }
    
    .info-box {
         padding: 15px;
         margin: 15px 0;
     }
 }

/* Media query para smartphones muito pequenos */
@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .form-container {
        padding: 10px;
        margin: 2px;
    }
    

    
    .form-control {
        padding: 12px;
    }
    

    
    .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .info-box {
        padding: 10px;
        margin: 10px 0;
    }
    
    .info-box h4 {
        font-size: 16px;
    }
}

/* Utility Classes */
.hidden { display: none; }

/* Navigation - Menu Suspenso */
.nav-menu {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    margin: 0 10px;
}

.nav-menu-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
    white-space: nowrap;
}

.nav-menu-list a:hover {
    background-color: var(--secondary-color);
    color: black;
    transform: translateY(-1px);
}

.nav-menu-list a.btn-danger {
    color: white !important;
}

.nav-menu-list a.btn-danger:hover {
    color: white !important;
    background: var(--danger-color) !important;
    transform: none !important;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        padding: 20px 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu-list li {
        margin: 5px 0;
        padding: 0 20px;
    }
    
    .nav-menu-list a {
        padding: 15px;
        border-radius: 8px;
        font-size: 16px;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
}

/* Overlay para mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
}

.nav-overlay.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    color: #1e40af;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.modal-body {
    flex: 1;
}

.modal-body iframe,
.modal-body object {
    width: 100%;
    height: 100%;
    border: none;
}

.editor-container {
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.toolbar {
	background: #f5f5f5;
	border-bottom: 1px solid #ccc;
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.toolbar button {
	padding: 6px 10px;
	border: 1px solid #ccc;
	background: white;
	cursor: pointer;
	border-radius: 3px;
	font-size: 12px;
}

.toolbar button:hover {
	background: #e0e0e0;
}

.toolbar button.active {
	background: #007cba;
	color: white;
}

.toolbar select {
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.editor-content {
	height: 400px;
	padding: 10px;
	outline: none;
	line-height: 1.5;
	overflow-y: auto;
	border: none;
	border-top: 1px solid #ccc;
	box-sizing: border-box;
}

/* Sobrescrever min-height-150 para o editor */
.editor-content.min-height-150 {
	height: 400px !important;
	min-height: unset !important;
	max-height: unset !important;
}

/* Sobrescrever min-height-200 para o editor */
.editor-content.min-height-200 {
	height: 400px !important;
	min-height: unset !important;
	max-height: unset !important;
}

/* Ajustes de altura para campos específicos */
textarea#descricao_curta.form-control {
    height: 125px !important; /* Redução de 44% em relação aos 400px originais */
    min-height: 125px !important;
    max-height: 125px !important;
    resize: none !important;
}

#objetivos_aprendizagem_editor.editor-content,
#metodologia_editor.editor-content {
    height: 280px !important; /* Redução de 30% em relação aos 400px originais */
}

#materiais_necessarios_editor.editor-content,
#adaptacoes_dicas_editor.editor-content {
    height: 160px !important; /* Redução de 60% em relação aos 400px originais */
}

/* Estilização da barra de rolagem do editor */
.editor-content::-webkit-scrollbar {
	width: 8px;
}

.editor-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.editor-content::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.editor-content::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.color-picker {
	width: 30px;
	height: 25px;
	border: 1px solid #ccc;
	cursor: pointer;
}

.separator {
	width: 1px;
	height: 25px;
	background: #ccc;
	margin: 0 5px;
}

/* Message Components */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.alert-message {
    background: #fff3cd;
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffeaa7;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Form Containers */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.container-login {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.register-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar.large {
    width: 100px;
    height: 100px;
    font-size: 40px;
    margin: 0 auto 20px;
}

/* Delete Profile Page Specific Styles */
.delete-container {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #fed7d7;
}

.delete-header {
    text-align: center;
    margin-bottom: 30px;
}

.delete-header h2 {
    color: #c53030;
    margin-bottom: 10px;
}

.warning-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-box h3 {
    color: #c53030;
    margin-bottom: 15px;
}

.warning-list {
    color: #2d3748;
    margin: 0;
    padding-left: 20px;
}

.warning-list li {
    margin-bottom: 10px;
}

/* PWA Specific Styles */
#setup_button {
    display: none;
}

/* Form Headers */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-header h2 {
    margin: 20px auto;
}

/* Form Elements - Layout simplificado em coluna única */
.form-container .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 20px;
    width: 100% !important;
}

.form-container .form-grid > div {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Otimização para posicionar contador ao lado dos campos */
.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group .char-counter {
    margin-top: 0;
    margin-left: 10px;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

/* Melhorias para textareas em dispositivos móveis */
@media (max-width: 768px) {
    textarea {
        min-height: 160px !important;
    }
}

@media (max-width: 480px) {
    textarea {
        min-height: 180px !important;
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (max-width: 360px) {
    textarea {
        min-height: 200px !important;
        font-size: 16px; /* Evita zoom no iOS */
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.register-link, .login-link {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

/* Profile Components */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin: 0px 0 20px 0;
}

.action-buttons .btn {
    text-align: center;
}

.profile-sidebar .action-buttons {
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
}

.profile-sidebar .action-buttons .btn {
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.activity-item, .post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

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

.item-title {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 20px;
}

.danger-zone {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.danger-zone h3 {
    color: #c53030;
    margin-bottom: 15px;
}

/* Password Strength Indicators */
.password-strength {
    font-size: 12px;
    margin-top: 5px;
}

/* Profile Page Specific Styles */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.profile-content {
    display: grid;
    gap: 20px;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-meta {
    font-size: 12px;
    color: #666;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-sidebar {
        order: 1;
    }
    
    .profile-content {
         order: 2;
     }
 }

/* Utility Classes for Inline Styles */
.info-box {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e40af;
    margin: 20px 0;
}

.info-box h4 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-box p, .info-box ul {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.info-box ul {
    padding-left: 20px;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 24px;
}

.section-subtitle {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 20px;
}

.text-content {
    line-height: 1.8;
}

.methodology-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-bar-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-form-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-input-container {
    flex: 1;
}

.search-input-container input {
    max-width: 400px;
}

.select-auto-width {
    width: auto;
    min-width: 200px;
}

.center-content {
    text-align: center;
}

.grid-full-width {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
}

.welcome-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    text-align: center;
}

.welcome-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 22px;
}

.welcome-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-separator {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.post-content {
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-content-large {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 10px;
}

.post-footer {
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.post-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .post-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .post-actions .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .center-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .center-content .btn {
        width: 80%;
        max-width: 300px;
    }
}

.recent-posts-grid {
    display: grid;
    gap: 15px;
}

.recent-post-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.recent-post-title {
    color: #1e40af;
    font-size: 16px;
    margin-bottom: 5px;
}

.recent-post-meta {
    color: #666;
}

.no-content-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

.footer-style {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

.btn-logout {
    color: white;
}

.btn-danger {
    background: var(--primary-color);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-color);
}

.btn-small {
    font-size: 14px;
    padding: 8px 15px;
}

.profile-name {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.profile-email {
    color: #666;
    text-align: center;
}

.profile-join-date {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.stat-number-small {
    font-size: 16px;
}

.hidden-textarea {
    display: none;
}

.min-height-150 {
     min-height: 150px;
 }

/* Responsividade para classe min-height-150 */
@media (max-width: 768px) {
    .min-height-150 {
        min-height: 180px !important;
    }
    
    /* Altura reduzida do editor em tablets */
    .editor-content.min-height-150 {
        height: 300px !important;
        min-height: unset !important;
    }
    
    .editor-content.min-height-200 {
        height: 300px !important;
        min-height: unset !important;
    }
    
    /* Padronização de altura para editores específicos em tablets */
    #objetivos_aprendizagem_editor.editor-content,
    #metodologia_editor.editor-content,
    #materiais_necessarios_editor.editor-content,
    #adaptacoes_dicas_editor.editor-content {
        height: 160px !important;
        min-height: 160px !important;
    }
}

@media (max-width: 480px) {
    .min-height-150 {
        min-height: 200px !important;
    }
    
    /* Altura reduzida do editor em smartphones */
    .editor-content.min-height-150 {
        height: 200px !important;
        min-height: unset !important;
    }
    
    .editor-content.min-height-200 {
        height: 200px !important;
        min-height: unset !important;
    }
    
    /* Padronização de altura para editores específicos em smartphones */
    #objetivos_aprendizagem_editor.editor-content,
    #metodologia_editor.editor-content,
    #materiais_necessarios_editor.editor-content,
    #adaptacoes_dicas_editor.editor-content {
        height: 160px !important;
        min-height: 160px !important;
    }
}

 .margin-top-30 {
     margin-top: 30px;
 }

 .margin-top-40 {
     margin-top: 40px;
 }

 .margin-bottom-15 {
     margin-bottom: 15px;
 }

 .margin-bottom-30 {
     margin-bottom: 30px;
 }

/* Estilo para tarja de texto suprimido */
.truncated-text-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Estilos para botões de mostrar/ocultar senha - Versão Mobile Otimizada */
.password-input-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 50px !important;
}

.password-input-container input.form-control {
    width: 100% !important;
    padding-right: 50px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 50px !important;
    line-height: normal !important;
}

.password-toggle {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    bottom: 1px !important;
    width: 48px !important;
    height: calc(100% - 2px) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #666 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 4px 4px 0 !important;
}

.password-toggle:hover {
    color: #333 !important;
    background: rgba(0,0,0,0.05) !important;
}

.password-toggle:focus {
    outline: 2px solid #007bff !important;
    outline-offset: -2px !important;
}

.password-toggle svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    color: inherit !important;
    pointer-events: none !important;
}