/* ===== Common Styles - مشترك لجميع الصفحات ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Almarai', sans-serif;
    font-weight: bold;
}

body {
    background: #333;
    padding: 20px;
}

/* Controls Bar */
.controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #222;
    padding: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.btn i {
    font-size: 18px;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #27ae60;
}

.btn-print {
    background: #e67e22;
}

.btn-clear {
    background: #c0392b;
}

.btn-back {
    background: #7f8c8d;
}

/* Content Container */
#content {
    background: white;
    width: 210mm;
    margin: 80px auto 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 0;
    font-size: 0;
}

/* Page */
.page {
    width: 210mm;
    height: 297mm;
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    page-break-after: always;
    display: block;
    margin: 0;
    padding: 0;
}

/* Input Fields */
input {
    position: absolute;
    background: transparent;
    border: none;
    font-size: 20px;
    font-family: Arial;
    font-weight: normal;
    padding: 2px;
    height: 22px;
    outline: none;
    transition: background 0.2s;
}

input:focus {
    background: rgba(52, 152, 219, 0.1);
    border-bottom: 1px solid #3498db;
}
