:root{
    --tr-primary:#AC5000;
    --tr-primary-dark:#602206;
    --tr-bg:#FFF8F3;
    --tr-card:#FFFFFF;
    --tr-border:#E9D6C5;
    --tr-success:#16A34A;
    --tr-text:#2D2A26;
    --tr-secondary:#8B6B55;
}

body{
    margin:0;
    padding:0;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#FFF8F3,#F5E8DA);
    font-family:'Inter',sans-serif;
}

.wrapper{
    width:450px;
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 20px 45px rgba(96,34,6,.12);
    border:1px solid #EAD8C5;
}

.button input{
    height:50px;
    background:#AC5000;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.button input:hover{
    background:#602206;
}

.button input,
.logout,
.typing-area button{
    background:var(--tr-primary);
    border-radius:10px;
    transition:.3s;
}

.button input:hover,
.logout:hover,
.typing-area button:hover{
    background:var(--tr-primary-dark);
}

.outgoing .details p{
    background:var(--tr-primary);
}

.incoming .details p{
    background:#FFF2E8;
    border:1px solid var(--tr-border);
}

/* Brand Header */
.brand-header{
    text-align:center;
    margin-bottom:30px;
}

.brand-logo{
    width:90px;
    height:90px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.brand-logo .logo{
    width:90px;
    height:90px;
    object-fit:contain;
    display:block;
}

/* Mobile */
@media (max-width:576px){
    .brand-logo{
        width:72px;
        height:72px;
    }

    .brand-logo .logo{
        width:72px;
        height:72px;
    }
}

.welcome-card{
    display:flex;
    align-items:center;
    gap:15px;
    background:#FFF3E8;
    border-left:5px solid #AC5000;
    padding:16px;
    border-radius:14px;
    margin-bottom:20px;
}

.welcome-icon{
    width:48px;
    height:48px;
    border-radius:12px;
    background:#AC5000;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
}
 
.form form .field{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

.form form .name-details{
    display:flex;
    gap:15px;
}

.name-details .field{
    width:100%;
}

.field label{
    margin-bottom:6px;
    font-weight:600;
    color:#602206;
}

.field input{
    height:48px;
    border:1px solid #D7C1AE;
    border-radius:10px;
    padding:0 15px;
    font-size:15px;
    outline:none;
}

.field input:focus{
    border-color:#AC5000;
    box-shadow:0 0 0 3px rgba(172,80,0,.15);
}

/* Password field wrapper */
.field.password{
    position: relative;
}

/* Password input */
.field.password input{
    width: 100%;
    height: 50px;
    padding: 0 45px 0 15px;   /* space for eye icon */
    border: 1px solid #D7C1AE;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Eye icon */
.field.password i{
    position: absolute;
    right: 15px;
    top: calc(50% + 13px);    /* accounts for label height */
    transform: translateY(-50%);
    color: #8B6B55;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.field.password i:hover{
    color: #AC5000;
}

.upload-box{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    height:52px;
    border:2px dashed #D9C2AE;
    border-radius:12px;
    background:#FFF8F3;
    cursor:pointer;
    transition:.3s;
    color:#8B6B55;
    font-weight:500;
}

.upload-box:hover{
    border-color:#AC5000;
    background:#FFF1E6;
    color:#AC5000;
}

.upload-box i{
    font-size:20px;
}

.brand-header{
    margin-bottom:30px;
}

.form form{
    margin-top:10px;
}

.field{
    margin-bottom:20px;
}

.name-details{
    margin-bottom:5px;
}

.footer-text{
    text-align:center;
    margin-top:25px;
    font-size:13px;
    color:#8B6B55;
}

/* ===========================
   RacineChat Responsive Fix
   =========================== */

*{
    box-sizing: border-box;
}

.wrapper{
    width: 100%;
    max-width: 520px;
    margin: 30px auto;
    padding: 32px;
}

/* Desktop */
.form form .name-details{
    display: flex;
    gap: 15px;
}

.name-details .field{
    flex: 1;
}

/* Tablet */
@media (max-width: 768px){

    body{
        padding: 20px;
        align-items: flex-start;
    }

    .wrapper{
        max-width: 100%;
        padding: 24px;
        border-radius: 18px;
    }

    .brand-header h2{
        font-size: 34px;
    }

    .brand-header p{
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px){

    .wrapper{
        padding: 20px 18px;
        margin: 16px auto;
    }

    /* Stack first & last name */
    .form form .name-details{
        flex-direction: column;
        gap: 0;
    }

    .name-details .field{
        width: 100%;
    }

    .field input,
    .field select,
    .upload-box{
        width: 100%;
        height: 48px;
    }

    .button input{
        width: 100%;
        height: 50px;
    }

    .brand-logo{
        width: 64px;
        height: 64px;
    }

    .brand-header h2{
        font-size: 30px;
    }

    .brand-header p{
        font-size: 15px;
    }
}

/* ==========================================
   TechRacine Alert Component
========================================== */

.error-text{
    display:none;
    width:100%;
    padding:14px 16px;
    margin-bottom:18px;
    border-radius:12px;
    border-left:5px solid #DC2626;
    background:#FEF2F2;
    color:#B91C1C;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
    align-items:center;
    gap:10px;
}

.error-text.show{
    display:flex;
}

.error-text::before{
    content:"⚠";
    font-size:18px;
    font-weight:bold;
    color:#DC2626;
    flex-shrink:0;
}

/* Logged-in user profile */
.users header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.users header .content{
    display:flex;
    align-items:center;
    gap:15px;
}

.users header img,
.users-list img{
    width:56px;
    height:56px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #E9D6C5;
    flex-shrink:0;
}

.users header .details span{
    font-size:18px;
    font-weight:600;
    color:#602206;
}

.users header .details p{
    font-size:13px;
    color:#16A34A;
    margin-top:2px;
}

.logout-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    background:#FFF8F3;
    border:1px solid #AC5000;
    border-radius:10px;
    color:#AC5000;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.logout-btn:hover{
    background:#AC5000;
    color:#fff;
}

.search-bar{
    display:flex;
    align-items:center;
    background:#FFF8F3;
    border:1px solid #E9D6C5;
    border-radius:12px;
    padding:0 14px;
    height:48px;
    margin:18px 0;
}

.search-bar i{
    color:#AC5000;
    margin-right:10px;
}

.search-bar input{
    flex:1;
    border:none;
    background:none;
    outline:none;
    font-size:15px;
}

.empty-state{
    text-align:center;
    padding:35px 20px;
    color:#8B6B55;
}

.empty-state i{
    font-size:42px;
    color:#AC5000;
    margin-bottom:15px;
}

.empty-state h4{
    color:#602206;
    margin-bottom:8px;
}

.users-list a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px;
    margin-bottom:10px;
    border-radius:12px;
    text-decoration:none;
    color:#2D2A26;
    transition:.3s;
}

.users-list a:hover{
    background:#FFF8F3;
}

.users-list img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

.users-list .details span{
    font-weight:600;
    color:#602206;
}

.users-list .details p{
    color:#8B6B55;
    font-size:13px;
}
/* ===========================
   TechRacine Search Component
=========================== */

.search{
    position:relative;
    margin:20px 0;
}

.search input{
    width:100%;
    height:52px;
    border:1px solid #E7D3C3;
    border-radius:14px;
    background:#FFF8F3;
    padding:0 18px 0 48px;
    font-size:15px;
    color:#2D2A26;
    outline:none;
    transition:.25s;
    box-sizing:border-box;
}

.search input:focus{
    border-color:#AC5000;
    box-shadow:0 0 0 3px rgba(172,80,0,.12);
}

.search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#AC5000;
    font-size:18px;
}

.search button{
    display:none;
}

/* ===============================
   Employee List Cards
================================= */

.users-list{
    margin-top:10px;
}

.user-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    margin-bottom:12px;
    border:1px solid #EFE2D6;
    border-radius:14px;
    background:#FFFFFF;
    text-decoration:none;
    transition:.25s;
}

.user-card:hover{
    background:#FFF8F3;
    border-color:#AC5000;
}

.user-card .content{
    display:flex;
    align-items:center;
    gap:14px;
}

.user-card img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}

.user-card .details span{
    display:block;
    font-weight:600;
    color:#602206;
}

.user-card .details p{
    margin:2px 0;
    font-size:13px;
    color:#AC5000;
}

.user-card .details small{
    color:#777;
    font-size:12px;
}

.status-dot{
    width:12px;
    height:12px;
    border-radius:50%;
}

.status-dot.online{
    background:#16A34A;
}

.status-dot.offline{
    background:#CBD5E1;
}

.input-field{
    flex:1;
}

.attach-btn,
.send-btn{
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

.attach-btn{
    background:#FFF4EB;
    color:#AC5000;
}

.send-btn{
    background:#AC5000;
    color:white;
}

.send-btn:hover{
    background:#8B4200;
}

.back-icon{
    color:#AC5000;
    font-size:20px;
    text-decoration:none;
}

.chat-area header .details span{
    font-weight:600;
    color:#602206;
}

.chat-area header .details p{
    color:#16A34A;
    font-size:13px;
}


.attach-btn{
    display:none;
}

/* ======================================
   TR-RC-004 : Chat Module (Final)
====================================== */

.chat-area{
    display:flex;
    flex-direction:column;
    height:650px;
    border:1px solid var(--tr-border);
    border-radius:18px;
    overflow:hidden;
    background:#fff;
}

.chat-area header{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 20px;
    background:#FFF8F3;
    border-bottom:1px solid var(--tr-border);
}

.back-icon{
    color:var(--tr-primary);
    font-size:20px;
    text-decoration:none;
}

.chat-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
}

.chat-area .details{
    display:flex;
    flex-direction:column;
}

.chat-area .details span{
    color:var(--tr-primary-dark);
    font-size:18px;
    font-weight:600;
}

.chat-area .details p{
    color:var(--tr-success);
    font-size:13px;
    margin-top:4px;
}

.chat-box{
    flex:1;
    overflow-y:auto;
    padding:20px;
    background:#FFFCFA;
}

.chat{
    display:flex;
    margin-bottom:16px;
}

.chat.incoming{
    justify-content:flex-start;
    align-items:flex-end;
    gap:10px;
}

.chat.outgoing{
    justify-content:flex-end;
}

.chat.incoming img{
    width:34px;
    height:34px;
    border-radius:50%;
    object-fit:cover;
}

.chat .details{
    max-width:70%;
}

.chat .details p{
    padding:10px 14px;
    border-radius:18px;
    font-size:14px;
    line-height:1.5;
    margin:0;
}

.chat.incoming .details p{
    background:#FFFFFF;
    border:1px solid var(--tr-border);
    color:var(--tr-text);
    border-radius:18px 18px 18px 4px;
}

.chat.outgoing .details p{
    background:var(--tr-primary);
    color:#fff;
    border-radius:18px 18px 4px 18px;
}

.typing-area{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-top:1px solid var(--tr-border);
    background:#FFFDFB;
}

.typing-area .input-field{
    flex:1;
    height:48px;
    border:1px solid var(--tr-border);
    border-radius:24px;
    padding:0 18px;
    font-size:15px;
    outline:none;
    background:#fff;
}

.typing-area .input-field:focus{
    border-color:var(--tr-primary);
}

.attach-btn{
    display:none;
}

.send-btn{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:var(--tr-primary);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.25s;
}

.send-btn:hover{
    background:var(--tr-primary-dark);
}