/* Modern styling for the declaration app */
body {
    font-family: 'Cairo', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #444;
    direction: rtl;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #34495e;
}

input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

input:focus, textarea:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.captcha-box {
    background: #e6f7ff !important;
    color: #005f87;
    border: 1px dashed #1890ff;
}

.actions {
    margin-top: 35px;
    text-align: center;
}

button {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: #fff;
    padding: 16px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

button:active {
    transform: translateY(1px);
}

.required {
    color: #e74c3c;
    margin-right: 3px;
}

small {
    font-weight: normal;
    color: #95a5a6;
    font-size: 0.85em;
    display: inline-block;
    margin-right: 5px;
}


small {
    font-weight: normal;
    color: #777;
    font-size: 0.85em;
}

/* Table styling for admin */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

th {
    background: #f4f6f8;
    color: #555;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}
