/* الأساسيات */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    direction: rtl;
    text-align: right;
}
header {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 1.8em;
}
header p {
    margin: 0;
    margin-top: 5px;
    font-size: 1em;
}
/* صفحة اختيار القالب */
.template-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.template-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s;
}
.template-card:hover {
    transform: translateY(-5px);
}
.template-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.template-card h3 {
    margin: 10px 0;
}
.template-card button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9em;
}
.template-card button:hover {
    background: #2980b9;
}
/* نموذج السيرة الذاتية */
form {
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
}
fieldset {
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 4px;
}
legend {
    font-weight: bold;
    padding: 0 10px;
}
label {
    display: block;
    margin: 8px 0 4px;
    font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.achievement-input {
    display: flex;
    gap: 10px;
}
.achievement-input input {
    flex: 1;
}
.achievement-input button {
    padding: 8px 12px;
    border: none;
    background: #27ae60;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.achievement-input button:hover {
    background: #1e8449;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    background: #ecf0f1;
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
}
ul li span.remove {
    position: absolute;
    left: 10px;
    cursor: pointer;
    color: #e74c3c;
}
.camera-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#video {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #000;
}
.camera-controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
    gap: 5px;
}
.camera-controls input[type="text"] {
    width: 100%;
}
.camera-controls button {
    padding: 8px 12px;
    border: none;
    background: #e67e22;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.camera-controls button:hover {
    background: #d35400;
}
.photos-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.photo-thumb {
    position: relative;
    width: 150px;
    height: 150px;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.photo-thumb p {
    margin-top: 5px;
    font-size: 0.8em;
}
.generate-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
.generate-button:hover {
    background: #2471a3;
}
/* صور العرض في صفحة الصور */
.photos-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: flex-start;
}
.photo-item {
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 200px;
}
.photo-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.photo-item p {
    margin: 5px 0 0;
    font-size: 0.85em;
}
