:root {
    --primary-hue: 260;
    --primary-color: hsl(var(--primary-hue), 80%, 65%);
    --bg-color: #0f0c29;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --input-focus: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
    position: relative;
    color: var(--text-white);
}

/* Background Blobs for Atmosphere */
.background-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate ease-in-out;
    opacity: 0.6;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #7b4397;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #dc2430;
    bottom: -50px;
    right: -50px;
    animation-delay: -2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #3a1c71;
    top: 40%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Glassmorphism Card */
.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 1;
    animation: slideIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition-speed);
    position: relative;
    z-index: 10;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.input-group label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
    transition: var(--transition-speed);
    font-size: 0.95rem;
}

.input-group .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition-speed);
}

/* Floating Label Animation */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: 0;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.4rem;
    background: #1a1a2e;
    /* Matches bg somewhat to hide line */
    background: linear-gradient(180deg, transparent 50%, var(--glass-bg) 50%);
    border-radius: 4px;
    color: var(--primary-color);
}

.input-group input:focus~.icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-white);
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.forgot-pass {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: var(--primary-color);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(123, 67, 151, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 67, 151, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-login:hover .btn-shine {
    left: 150%;
    transition: 0.5s;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.divider span {
    padding: 0 10px;
}

/* Social Buttons */
.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-speed);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.social-btn.google:hover {
    color: #EA4335;
}

.social-btn.github:hover {
    color: #fff;
}

.social-btn.apple:hover {
    color: #A2AAAD;
}

/* Signup Link */
.signup-link {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.signup-link a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.3rem;
    position: relative;
}

.signup-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.signup-link a:hover::after {
    width: 100%;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
}

/* Dashboard Specific Styles */
.dashboard-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* Consistente com o estilo mobile-first/app */
    max-height: 90vh;
    /* Limita altura para parecer uma tela de celular no desktop */
    overflow-y: auto;
    /* Scroll interno */
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Scrollbar styling for dashboard */
.dashboard-container::-webkit-scrollbar {
    width: 6px;
}

.dashboard-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.dashboard-nav .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.btn-logout {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

.btn-logout:hover {
    background: rgba(255, 87, 87, 0.2);
    border-color: rgba(255, 87, 87, 0.5);
    color: #ff5e5e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.content-section {
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
}

.list-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.item-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.item-details p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.item-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Professional Card Styles */
.professional-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
    animation: fadeIn 0.5s ease forwards;
}

.professional-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

.prof-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.prof-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.prof-info {
    flex: 1;
}

.prof-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.prof-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.prof-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
}

.prof-services {
    margin-bottom: 1rem;
}

.prof-service-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    align-items: center;
}

.service-name {
    color: var(--text-white);
}

.service-price {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-hire-prof {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-hire-prof:hover {
    opacity: 0.9;
}

/* Chat Interface Styles */
.chat-overlay {
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 350px;
    height: 500px;
    max-height: 90vh;
    background: #1a1a2e;
    border: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-overlay.open {
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background: var(--primary-color);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chat-prof-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #121225;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 2px;
    color: var(--text-white);
}

.message.sent {
    align-self: flex-end;
    background: rgba(123, 67, 151, 0.5);
    /* Hardcoded primary-ish color */
    border: 1px solid rgba(123, 67, 151, 0.8);
    border-bottom-right-radius: 2px;
    color: white;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: #1a1a2e;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

.chat-input-area button {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Mobile specific for Chat */
@media (max-width: 480px) {
    .chat-overlay {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .chat-header {
        border-radius: 0;
        padding-top: 1.5rem;
        /* Status bar area */
    }
}/* ... (Previous Styles) ... */

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay:not(.hidden) {
    display: flex !important;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}
