@font-face {
  font-family: 'sf-arabic';
  src: url(./sf-arabic-regular.ttf);
  font-weight: normal;
  font-style: normal;
}

/* Inline fallback styles if style.css is missing */
body {
    font-family: 'sf-arabic';
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6ecef 100%);
    color: #2c3e50;
}
h1, h5 {
    color: #333;
    direction: rtl;
    font-weight: normal;
}
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
textarea, select, input, button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'sf-arabic';
    direction: rtl;
}
textarea{
    resize: none;
    field-sizing: content;
    min-height: 100px;
    margin-bottom: 0px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    position: relative;
    font-family: 'sf-arabic';
}
button:hover {
    background-color: #0056b3;
}
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#audioPlayer {
    margin-top: 20px;
    width: 100%;
}
#error {
    color: red;
    margin-top: 10px;
    display: none;
}
.loading-animation {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
button.loading .loading-animation {
    display: block;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#wordCount{
    margin-bottom: 10px;
}

.selected_title {
    display: flex;
    justify-content: center; /* Align titles side by side and centered if needed */
    align-items: center;
    gap: 20px; /* Space between the titles */
}

.selected_title h5 {
    margin: 0;
    font-size: 24px; /* Adjust size as needed */
}

.selected_title h5 a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep original text color */
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.selected_title #seleted_a {
    background-color: #007bff; /* Highlight the first title/link */
    color: white;
}

.selected_title #seleted_a:hover {
    background-color: #0056b3; /* Optional: Change highlight on hover */
}

.selected_title #unselected_a:hover {
    background-color: #0056b3; /* Change background on hover for the second link */
    color: white; /* Optional: Improve contrast on dark hover background */
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    direction: rtl;
    text-align: right;
}
th {
    background-color: #f0f0f0;
}
tr.example-row {
    cursor: pointer;
}
tr.example-row:hover {
    background-color: #f9f9f9;
}

label {
    display: block;
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 0.5rem;
    text-align: right;
    direction: rtl;
}

#warning{
    direction: rtl;
    margin-top: 0px;
}

.for_vits, .for_vv { display: none; }
.visible { display: block; }
select, input[type="range"] { width: 100%; margin-top: 0.5rem; }
.cfg { margin-top: 1rem; }


@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    .selected_title{
        gap: 5px;
    }
    .selected_title h5 {
        font-size: 16px; /* Adjust size as needed */
    }
}