@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 400px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    font-weight: 700;
    margin: 0;
}

.user-form .form-group {
    margin-bottom: 20px;
}

.user-form label {
    display: block;
    margin-bottom: 8px;
    color: #eee;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

button {
    width: 100%;
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

p {
    text-align: center;
    margin-top: 20px;
    color: #eee;
}

.message {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
}

.message.success {
    background: rgba(40, 167, 69, 0.7);
}
.message.error {
    background: rgba(220, 53, 69, 0.7);
}


ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

li {
    margin: 10px 0;
}

a, .back-link, .logout-link {
    color: #f7f7f7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover, .back-link:hover, .logout-link:hover {
    color: #89f7fe;
    text-decoration: underline;
}

.back-link, .logout-link {
    font-size: 14px;
    position: absolute;
    top: 5px;
    right: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background-color: rgba(255, 255, 255, 0.2);
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
