/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}

form {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header-left img {
    max-width: 150px;
    margin-left: 20px;
}

.header-right {
    text-align: right;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-right label {
    margin-bottom: 5px;
}

.header-right input {
    margin-bottom: 10px;
    padding: 5px;
    width: 250px;
}

/* Title Section */
.title-section {
    text-align: center;
    margin: 20px 0;
}

.title-section h1 {
    font-size: 28px;
    font-weight: bold;
}

/* Title Input Section */
.title-input-section {
    text-align: center;
    margin: 20px 0;
}

.title-input-section input {
    width: 40%;
    padding: 10px;
    margin-top: 10px;
}

/* Buttons */

/* Add Paragraph Button */
#addParagraphBtn {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#addParagraphBtn:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Add Step Button */
.add-step-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-step-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* Add Table Button */
.add-table-btn {
    background-color: #e67e22; /* برتقالي */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-table-btn:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* Add Row Button */
.add-row-btn {
    background-color: #8e44ad; /* بنفسجي */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.add-row-btn:hover {
    background-color: #7d3c98;
    transform: scale(1.05);
}

/* Delete Table Button */
.delete-table-btn {
    background-color: #e74c3c; /* أحمر */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.delete-table-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Position the Delete Table button on the far right */
.table-container {
    display: flex;
    flex-direction: column;
}

.table-container .table-actions {
    display: flex;
    justify-content: flex-end; /* زر Delete Table إلى أقصى اليمين */
    margin-top: 10px;
}
/* Generate Game Plan Button */
.generate-btn {
    background-color: red;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: block;
    margin: 40px auto;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.generate-btn:hover {
    background-color: darkred;
    transform: scale(1.05);
}

/* Table Styling */
.styled-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    overflow-x: auto;
}

.styled-table, .styled-table th, .styled-table td {
    border: 1px solid #ddd;
}

.styled-table th {
    background-color: #2c3e50;
    color: white;
    padding: 8px;
    text-align: left;
}

.styled-table td {
    background-color: #ecf0f1;
    padding: 8px;
    text-align: left;
}

/* Button in table rows */
.styled-table button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.styled-table button:hover {
    background-color: #c0392b;
}

/* Style for the line separator between paragraphs */
hr {
    border: none;
    height: 2px;
    background-color: #333;
    margin: 20px 0;
}
.insert-paragraph-btn {
    background-color: #1abc9c;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.insert-paragraph-btn:hover {
    background-color: #16a085;
}
