@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    background: linear-gradient(120deg, #e9f0fa 0%, #d7eaff 100%);
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    color: #243153;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

.container {
    width: 96%;
    max-width: 840px;
    margin: 32px auto 0 auto;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 6px 40px #a8badb2e;
    padding: 36px 30px 28px 30px;
    animation: fadein 1s;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(35px);}
    to   { opacity: 1; transform: translateY(0);}
}

h2, h3, h4 {
    margin: 0 0 22px 0;
    text-align: right;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2780e3;
    line-height: 1.5;
    font-size: 2.1em;
}

label {
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
    margin-top: 14px;
    color: #555;
    font-weight: 500;
    text-align: right;
}

input[type=text], input[type=password], input[type=date], input[type=email], textarea, select {
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 7px;
    border: 1.4px solid #dde6f4;
    border-radius: 5px;
    transition: border-color 0.2s;
    font-size: 16px;
    background: #f5f9ff;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

input[type=text]:focus, input[type=password]:focus, input[type=date]:focus, input[type=email]:focus, textarea:focus, select:focus {
    border-color: #2780e3;
    outline: none;
    background: #f0f8ff;
}

input[type=submit], button, .btn {
    background: linear-gradient(90deg,#2780e3 50%, #30b7c1 100%);
    color: #fff;
    padding: 11px 0;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: box-shadow 0.2s, background 0.25s;
    box-shadow: 0 2px 8px #b8c5dd44;
    letter-spacing: 1px;
}

input[type=submit]:hover, button:hover, .btn:hover {
    background: linear-gradient(90deg,#1a5ba1 30%, #2b8c93 100%);
    box-shadow: 0 4px 14px #90b2e744;
}

a, a:visited {
    color: #1c71d8;
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: #1266a6; }

.error, .success {
    text-align: center;
    padding: 10px 0;
    border-radius: 5px;
    margin-bottom: 15px;
}
.error {
    background: #ffdede;
    color: #b43a3a;
}
.success {
    background: #e1ffe1;
    color: #218e22;
}

.go-dashboard {
    background: #e9f3fc;
    color: #2780e3 !important;
    padding: 8px 19px 8px 15px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 7px #c8d9ec44;
    transition: background .18s, color .18s;
    display: inline-block;
}
.go-dashboard i {
    margin-left: 8px;
}
.go-dashboard:hover {
    background: #2780e3;
    color: #fff !important;
}

.attch-list {margin:0 0 20px 0; padding:0;list-style:none;}
.attch-list li{margin-bottom:6px;}

.timeline{margin:0;padding:0;list-style:none;}
.timeline li{background:#f9fcff;border-radius:9px;margin-bottom:18px;padding:13px 16px;box-shadow:0 1px 4px #e6eefa;}

@media (max-width: 900px) {
    .container { max-width: 99%; padding: 17px 7px 20px 7px;}
    h2, h3, h4 {font-size: 1.5em;}
}

@media (max-width: 600px) {
    .container {
        padding: 9vw 3vw 11vw 3vw;
        min-width: unset;
    }
    h2, h3, h4 {font-size: 1.2em;}
    label {font-size: 14px;}
    input[type=submit], button, .btn {font-size: 15px; padding: 11px 0;}
    .go-dashboard { font-size: 14px; padding: 7px 13px 7px 10px; }
    .timeline li, .attch-list li { font-size: 14px;}
}

@media (max-width: 400px) {
    .container {padding: 4vw 2vw 8vw 2vw;}
}
