/* ============================================
   RenderCore - Estilos Generales
   Archivo CSS principal con diseño profesional
   ============================================ */

/* --- Variables CSS --- */
/* Las variables principales están en color-palette.css */
/* Estas son variables de compatibilidad para mantener funcionalidad */
:root {
    --primary-color: var(--primary-500);
    --secondary-color: var(--primary-700);
    --accent-color: var(--primary-400);
    --dark-bg: var(--bg-base);
    --light-bg: var(--bg-secondary);
    --card-bg: var(--card-bg);
    --text-primary: var(--text-primary);
    --text-secondary: var(--text-secondary);
    --border-color: var(--border-base);
    --header-bg: var(--bg-header);
    --success: var(--success-base);
    --warning: var(--warning-base);
    --danger: var(--error-base);
    --shadow-sm: var(--shadow-sm);
    --shadow-md: var(--shadow-md);
    --shadow-lg: var(--shadow-lg);
    --transition: var(--transition-normal);
}

/* --- Reset y Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-base);
    color: #ffffff !important; /* Texto blanco forzado para todo el body */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Asegurar que todos los textos principales sean blancos */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Párrafos y spans heredan del body (blanco) */
p {
    color: #b3b3b3 !important; /* Texto de párrafos en gris claro para buen contraste */
}

/* Divs heredan del body, pero permitimos sobrescritura específica */
div {
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    height: 70px;
    color: #ffffff; /* Asegura que todo el texto del header sea blanco */
}

.header * {
    color: inherit; /* Hereda el color blanco por defecto */
}

.header .menu-toggle i,
.header .profile-btn i {
    color: #ffffff !important; /* Fuerza iconos a blanco */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-toggle,
.profile-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff !important; /* Blanco para contraste perfecto */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.menu-toggle:hover,
.profile-btn:hover {
    background: var(--primary-600);
    color: #ffffff !important;
    transform: scale(1.05);
    border-color: var(--primary-600);
    box-shadow: var(--glow-primary);
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Asegura que el logo sea blanco */
    transition: all 0.3s ease;
}

/* --- Dropdown del Perfil --- */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
}

.user-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.user-info-small h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.user-info-small p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-dropdown-menu {
    padding: 0.5rem 0;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.profile-dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.profile-dropdown-menu a i {
    font-size: 1.1rem;
    width: 20px;
}

/* --- Sidebar/Menu Lateral --- */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-base);
    background: var(--bg-tertiary);
}

.sidebar-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.close-sidebar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff !important; /* Blanco para contraste */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.close-sidebar:hover {
    background: var(--error-base);
    color: #ffffff !important;
}

.close-sidebar i {
    color: #ffffff !important;
}

.user-info {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-base);
    color: var(--text-primary);
}

.user-avatar {
    font-size: 4rem;
    color: var(--primary-400);
    margin-bottom: 1rem;
}

.user-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #ffffff !important; /* Nombre de usuario en blanco */
}

.user-role {
    color: #b3b3b3 !important; /* Rol de usuario visible */
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-base);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.3rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-menu a i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 25px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--gradient-primary);
    color: #ffffff !important; /* Texto blanco en hover azul */
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: #ffffff !important; /* Icono blanco en hover azul */
}

/* --- Overlay --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Contenido Principal --- */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Layout de 3 Columnas --- */
.three-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Sidebars (Izquierda y Derecha) --- */
.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-base);
}

.widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    background: var(--card-hover-bg);
    border-color: var(--border-light);
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff !important; /* Títulos de widgets en blanco */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Accesos Rápidos --- */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    border: 1px solid var(--border-base);
    color: var(--text-primary);
}

.quick-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-link:hover {
    background: var(--primary-600);
    color: #ffffff !important; /* Texto blanco en hover azul */
    transform: translateX(5px);
    border-color: var(--primary-600);
    box-shadow: var(--glow-primary);
}

.quick-link:hover i {
    color: #ffffff !important; /* Icono blanco en hover azul */
}

/* --- Categorías --- */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border-medium);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-600);
    color: #ffffff !important; /* Texto blanco en hover azul */
    border-color: var(--primary-600);
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

/* --- Features List --- */
.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--success);
    font-size: 1.2rem;
}

/* --- Contenido Central --- */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-header {
    text-align: center;
    margin-bottom: 1rem;
}

.content-header h1,
.content-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.content-header p {
    color: #b3b3b3 !important; /* Texto descriptivo en gris claro para contraste */
    font-size: 1.1rem;
}

/* --- Proyectos --- */
.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-base);
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: var(--border-light);
}

.project-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Imagen única sin carrusel */
.project-image-single {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-single img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.carousel-btn:hover {
    background: var(--primary-600);
    color: var(--text-on-primary);
    box-shadow: var(--glow-primary);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-500);
    width: 30px;
    border-radius: 5px;
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff !important; /* Título del proyecto en blanco */
}

.project-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b3b3b3 !important; /* Información de empresa en gris claro */
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.project-category {
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-description {
    color: #b3b3b3 !important; /* Texto secundario pero visible (gris claro) */
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-400);
    font-weight: 500;
    border: 1px solid var(--primary-600);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    color: #b3b3b3 !important; /* Metadatos en gris claro visible */
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Botones --- */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff !important; /* Texto blanco en botón primario */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary-hover);
    background: var(--gradient-primary-glow);
    color: #ffffff !important; /* Texto blanco en hover */
}

.btn-primary:hover i {
    color: #ffffff !important; /* Icono blanco en hover */
}

.btn-secondary {
    background: var(--button-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--button-secondary-hover);
    border-color: var(--border-light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-load-more {
    background: transparent;
    color: var(--primary-400);
    border: 2px solid var(--primary-600);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-load-more:hover {
    background: var(--primary-600);
    color: #ffffff !important;
    border-color: var(--primary-500);
    box-shadow: var(--glow-primary-hover);
    transform: translateY(-2px);
    padding-left: 3rem;
    padding-right: 2rem;
}

.btn-load-more:hover::before {
    left: 100%;
}

.btn-load-more i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: rotate(180deg);
}

.load-more-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
}

/* --- Novedades --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-base);
}

.news-item:hover {
    background: var(--primary-600);
    color: #ffffff !important; /* Texto blanco forzado en hover */
    transform: translateX(5px);
    border-color: var(--primary-600);
    box-shadow: var(--glow-primary);
}

.news-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.news-item:hover .news-icon {
    color: #ffffff !important; /* Icono blanco en hover */
}

.news-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: #ffffff !important; /* Título en blanco para visibilidad */
}

.news-content p {
    font-size: 0.85rem;
    color: #b3b3b3 !important; /* Texto de noticias visible */
    margin-bottom: 0.3rem;
}

.news-item:hover .news-content h4,
.news-item:hover .news-content p,
.news-item:hover .news-date {
    color: #ffffff !important; /* Todo el texto en blanco cuando hay hover */
}

.news-date {
    font-size: 0.75rem;
    color: #808080 !important; /* Fecha de noticia visible pero sutil */
}

/* --- Estadísticas --- */
.stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 10px;
    color: var(--text-on-primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9) !important; /* Etiqueta de estadística visible */
}

/* --- Tip Box --- */
.tip-box {
    padding: 1.5rem;
    background: var(--gradient-primary-glow);
    border-radius: 10px;
    color: #ffffff !important; /* Texto blanco para máximo contraste sobre fondo cyan */
    text-align: center;
}

.tip-box p {
    font-style: italic;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #ffffff !important; /* Asegurar texto blanco en párrafos */
    line-height: 1.6;
    max-width: 100%;
}

.tip-author {
    font-size: 0.85rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95) !important; /* Blanco con ligera opacidad para autor */
    display: block;
}

/* --- Tech Tags --- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Dropdown del Perfil --- */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
}

.user-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.user-info-small h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.user-info-small p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-dropdown-menu {
    padding: 0.5rem 0;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.profile-dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.profile-dropdown-menu a i {
    font-size: 1.1rem;
    width: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-header);
    color: var(--text-primary);
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-600);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-base);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    color: var(--text-primary);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #ffffff !important; /* Título del modal en blanco */
}

.close-modal {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-primary);
    border: 1px solid var(--border-base);
}

.close-modal:hover {
    background: var(--error-base);
    color: var(--text-on-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #b3b3b3 !important; /* Info del modal visible */
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
}

/* --- Formularios --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff !important; /* Labels en blanco para visibilidad */
}

.form-group label i {
    color: var(--primary-400);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.auth-form .form-group label {
    color: #ffffff !important; /* Labels de auth también en blanco */
}

.auth-form .form-group label i {
    color: var(--primary-400);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--input-focus-ring);
    background: var(--bg-tertiary);
}

/* --- Páginas de Autenticación --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: var(--bg-modal);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-base);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.auth-box h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff !important; /* Título de auth en blanco */
}

.auth-subtitle {
    text-align: center;
    color: #b3b3b3 !important; /* Subtítulo de auth visible */
    margin-bottom: 2rem;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #b3b3b3 !important; /* Toggle password visible */
    padding: 0.5rem;
    cursor: pointer;
}

.auth-form .toggle-password {
    color: #b3b3b3 !important; /* Botón toggle password visible */
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-form .checkbox-label span {
    color: #b3b3b3 !important; /* Texto de checkbox visible */
}

.forgot-password {
    color: var(--primary-400) !important; /* Link de contraseña olvidada en cyan */
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--primary-300) !important; /* Hover más claro */
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-base); /* Línea del divisor con color del tema */
}

.auth-divider span {
    background: var(--bg-modal);
    padding: 0 1rem;
    position: relative;
    color: #b3b3b3 !important; /* Texto del divisor visible */
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.btn-google {
    background: var(--bg-elevated);
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-google:hover {
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.2);
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #145dbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #b3b3b3 !important; /* Footer de auth visible */
}

.auth-footer a {
    color: var(--primary-400) !important; /* Links en cyan claro */
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-300) !important; /* Hover más claro */
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #b3b3b3 !important; /* Link de volver visible */
}

.back-home:hover {
    color: #ffffff !important; /* Hover en blanco */
}

.help-text {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #b3b3b3 !important; /* Texto de ayuda visible */
}

.auth-form .help-text {
    color: #b3b3b3 !important; /* Texto de ayuda en auth también visible */
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-light) !important;
    border: 2px solid var(--success-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.25);
}

.alert.error {
    background: var(--error-bg);
    color: var(--error-light) !important;
    border: 2px solid var(--error-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 20px rgba(239, 68, 68, 0.25);
}

.alert.info {
    background: var(--info-bg);
    color: var(--info-light) !important;
    border: 2px solid var(--info-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 20px rgba(6, 182, 212, 0.25);
}

.alert.warning {
    background: var(--warning-bg);
    color: var(--warning-light) !important;
    border: 2px solid var(--warning-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

/* --- Dashboard --- */
.dashboard-body {
    background: var(--bg-base);
}

.dashboard-content {
    padding: 2rem 1rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-base);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.empty-state {
    text-align: center;
    color: #b3b3b3 !important; /* Estado vacío visible */
    padding: 2rem;
}

/* --- Formulario de Upload --- */
.upload-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-base);
}

.image-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.image-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* --- Panel Admin --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-base);
}

.stat-card-large:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-on-primary);
}

.stat-icon.blue {
    background: var(--gradient-info);
}

.stat-icon.green {
    background: var(--gradient-success);
}

.stat-icon.purple {
    background: var(--gradient-primary);
}

.stat-icon.orange {
    background: var(--gradient-warning);
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.stat-content p {
    color: #b3b3b3 !important; /* Texto secundario visible */
    font-size: 0.9rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.admin-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-base);
}

.admin-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: 1px solid var(--border-base);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.header-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.search-input,
.filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}

.admin-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.conversations-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.conversations-list,
.conversation-detail {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-base);
}

.contracts-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contract-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-base);
    border-left: 4px solid var(--primary-600);
}

/* --- Mi Proyecto: Timeline Steps --- */
.timeline-steps { margin: 20px 0; }
.step-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: start; }
.step-icon { width: 40px; height: 40px; background: var(--gradient-primary); color: var(--text-on-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; box-shadow: var(--glow-primary); }
.step-content h4 { margin: 0 0 6px 0; font-size: 1rem; color: var(--text-primary); }
.step-content p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.form-hint { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; font-style: italic; }

/* ============================================
   Botones de Acción en Tablas (Admin)
   Mejora de visibilidad y contraste
   ============================================ */

.data-table .btn-icon,
.btn-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-medium) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0.3rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
}

.data-table .btn-icon i,
.btn-icon i {
    color: var(--primary-400) !important;
    transition: color 0.3s ease !important;
    font-size: 0.9rem !important;
    display: block !important;
}

.data-table .btn-icon:hover,
.btn-icon:hover {
    background: var(--primary-500) !important;
    border-color: var(--primary-500) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4) !important;
}

.data-table .btn-icon:hover i,
.btn-icon:hover i {
    color: #ffffff !important;
}

.data-table .btn-icon:active,
.btn-icon:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3) !important;
}

/* Estilos específicos para cada tipo de botón */
.data-table .btn-icon[title="Ver detalles"],
.btn-icon[title="Ver detalles"] {
    border-color: var(--primary-400) !important;
}

.data-table .btn-icon[title="Editar"],
.btn-icon[title="Editar"] {
    border-color: var(--warning-400) !important;
}

.data-table .btn-icon[title="Editar"] i,
.btn-icon[title="Editar"] i {
    color: var(--warning-400) !important;
}

.data-table .btn-icon[title="Editar"]:hover,
.btn-icon[title="Editar"]:hover {
    background: var(--warning-500) !important;
    border-color: var(--warning-500) !important;
}

.data-table .btn-icon[title="Cambiar estado"],
.btn-icon[title="Cambiar estado"] {
    border-color: var(--success-400) !important;
}

.data-table .btn-icon[title="Cambiar estado"] i,
.btn-icon[title="Cambiar estado"] i {
    color: var(--success-400) !important;
}

.data-table .btn-icon[title="Cambiar estado"]:hover,
.btn-icon[title="Cambiar estado"]:hover {
    background: var(--success-500) !important;
    border-color: var(--success-500) !important;
}

/* Estilos para botones sin title (fallback) */
.data-table td .btn-icon:nth-child(1) {
    border-color: var(--primary-400) !important;
}

.data-table td .btn-icon:nth-child(1) i {
    color: var(--primary-400) !important;
}

.data-table td .btn-icon:nth-child(2) {
    border-color: var(--warning-400) !important;
}

.data-table td .btn-icon:nth-child(2) i {
    color: var(--warning-400) !important;
}

.data-table td .btn-icon:nth-child(3) {
    border-color: var(--success-400) !important;
}

.data-table td .btn-icon:nth-child(3) i {
    color: var(--success-400) !important;
}

/* ============================================
   ESTILOS DE PERFIL
   ============================================ */

/* Modal grande para perfil */
.modal-large {
    max-width: 800px !important;
}

/* Header del perfil */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffffff;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: #ffffff !important;
}

.profile-type {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Contenido del perfil */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: var(--card-bg);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    padding: 1.5rem;
}

.profile-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section h3 i {
    color: var(--primary-400);
}

/* Grid de información */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    color: #ffffff !important;
    font-weight: 500;
}

/* Lista de proyectos */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.project-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-400);
    transform: translateX(5px);
}

.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.project-item-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff !important;
    flex: 1;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active {
    background: var(--success-500);
    color: #ffffff;
}

.status-paused {
    background: var(--warning-500);
    color: #ffffff;
}

.status-completed {
    background: var(--primary-500);
    color: #ffffff;
}

.project-description {
    margin: 0.75rem 0;
    color: #b3b3b3 !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.project-category {
    padding: 0.25rem 0.75rem;
    background: var(--primary-600);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tech-tag-small {
    padding: 0.2rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

/* Lista de conversaciones */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.conversation-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-400);
    transform: translateX(5px);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.conversation-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff !important;
    flex: 1;
}

.conversation-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending {
    background: var(--warning-500);
    color: #ffffff;
}

.status-assigned {
    background: var(--primary-500);
    color: #ffffff;
}

.status-in-progress {
    background: var(--primary-600);
    color: #ffffff;
}

.status-completed {
    background: var(--success-500);
    color: #ffffff;
}

.status-cancelled {
    background: var(--error-500);
    color: #ffffff;
}

.conversation-description {
    margin: 0.75rem 0;
    color: #b3b3b3 !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.conversation-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary) !important;
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-base);
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-400);
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    color: var(--text-secondary) !important;
    margin: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Form help text */
.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive para perfil */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95% !important;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item-header,
    .conversation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}
