*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family: Tahoma, Arial;
    background:#f6f8f7;
    direction:rtl;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    max-width:1000px;
    margin:auto;
    padding:15px;
}

/* Card */
.card{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    margin-bottom:20px;
}

/* Titles */
h1{
    font-size:clamp(22px,5vw,28px);
    color:#1f6f5c;
    margin-bottom:15px;
}

h2,h3{
    margin:10px 0;
}

/* Inputs */
input, button{
    width:100%;
    padding:12px;
    margin:6px 0;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:15px;
}

button{
    background:#1f6f5c;
    color:white;
    border:none;
    cursor:pointer;
}

button.secondary{
    background:#eee;
    color:#333;
}

button.danger{
    background:#c0392b;
}

/* Tables */
.table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.table th,.table td{
    border:1px solid #ddd;
    padding:8px;
    text-align:center;
}

/* Chat */
.chat-box{
    max-height:350px;
    overflow-y:auto;
    background:#f0f4f3;
    padding:10px;
    border-radius:10px;
    margin-bottom:10px;
}

.msg-me{
    background:#1f6f5c;
    color:white;
    padding:8px 12px;
    border-radius:10px;
    margin:5px 0;
    text-align:right;
}

.msg-him{
    background:#ddd;
    padding:8px 12px;
    border-radius:10px;
    margin:5px 0;
    text-align:left;
}

/* Alerts */
.alert{
    padding:12px;
    border-radius:10px;
    margin-bottom:10px;
}

.alert.error{
    background:#ffe5e5;
    color:#c0392b;
}

.alert.success{
    background:#e5ffe5;
    color:#2d7c3f;
}

/* Responsive */
@media(max-width:600px){
    .table{
        font-size:12px;
    }

    .chat-box{
        max-height:300px;
    }
}
