﻿        body, h1, label, input, select, textarea {
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #fff;
            background: linear-gradient(135deg, #130f40 25%, #2c3e50 50%, #2980b9 75%);
            background-size: 400% 400%;
            animation: gradientBG 10s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            flex-direction: column;
        }
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .form-container {
            width: 100%;
            max-width: 800px;
            padding: 0px 20px;
            background: rgba(0, 0, 0, 0.8);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            border-radius: 0px 0px 10px 10px;
            box-sizing: border-box;
            margin-bottom: 20px;
        }
        .form-container h1 {
            margin-bottom: 20px;
            font-size: 1.8rem;
            text-align: center;
        }
        .form-container label {
            display: block;
            margin-bottom: 5px;
            font-size: 1rem;
            color: #fff;
        }
        .form-container input, .form-container select, .form-container textarea {
            width: calc(100% - 20px);
            margin: 0 auto 20px;
            font-size: 1rem;
            padding: 10px;
            border-radius: 5px;
            border: none;
            background: #333;
            color: #fff;
            box-sizing: border-box;
        }
        .form-container input[type="button"] {
            color: white;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .form-container input[type="button"] {
    background: #3498db; /* استخدام لون أزرق هادئ */
    background: linear-gradient(145deg, #3498db, #2980b9); /* تدرج لوني ناعم */
    color: white;
    border: none;
    padding: 10px 20px; /* مساحة داخلية للزر */
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل ناعم */
    transition: background 0.3s ease, box-shadow 0.3s ease; /* تأثير عند التمرير */
}
        .form-container input[type="button"]:active {
            background: #3498db;
        }
        
        @media (max-width: 600px) {
            .form-container {
                padding: 20px 10px;
            }
            .form-container h1 {
                font-size: 1.5rem;
            }
            .form-container input, .form-container select {
                font-size: 0.9rem;
            }
        }
        textarea {
            margin: 0 auto 20px;
            font-size: 1rem;
            padding: 10px;
            border-radius: 5px;
            border: none;
            background: #333;
            color: #fff;
            box-sizing: border-box;
            width: 100%;
            height: auto;
            max-width: 100%;
        }
        #copy-btn {
            background: #27ae60;
        }
        #copy-btn:hover {
            background: #2ecc71;
        }
        strong {
            color: #d6ff00;
        }
        footer {
            text-align: center;
            color: #fff;
            font-size: 0.9rem;
            padding: 10px;
            background: rgb(0 0 0 / 27%);
            width: 98%;
        }
        footer a {
            color: #3498db;
            text-decoration: none;
        }
        footer a:hover {
            text-decoration: underline;
        }
        .fieldset {
            margin-bottom: 8px;
            border-color: #1413132e;
            border-radius: 8px;
            display: none;
        }
        .toggle-button {
            cursor: pointer;
            font-weight: bold;
            color: #ffffffe6;
            text-align: left;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
			max-width: 96%;
			 background-color: var(--text-base-disabled);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
        }
        .icon {
            margin-left: auto;
            font-size: 1.2rem;
        }
        textarea#m3u-output {
            min-height: 150px;
        }
		body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.form-container {
    flex: 1; /* هذا سيجعل الحاوية تأخذ المساحة المتاحة */
}

footer {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px;
    background: rgb(0 0 0 / 27%);
    width: 95%;
	max-with:98%
}
fieldset {
    margin-bottom: 10px;
}
input#tokenBtn {
    cursor: pointer;
}
input#tokenBtn {
    background-color: #211F1F;
}
input#tokenBtn:active {
    background-color: #231F1F;
}
p#message {
    background-color: #d1616170;
    padding: 5px;
    border-radius: 5px;
}
.messages {
    color: green;
    background-color: rgb(0 0 0 / 62%);
    padding: 5px;
    border-radius: 5px;
}
.input-container {
  display: flex;
  align-items: center; /* يضمن محاذاة الزر مع حقل الإدخال */
  gap: 10px; /* المسافة بين حقل الإدخال والزر */
}

.input-listname {
  flex-grow: 1;  /* يجعل حقل النص يملأ المساحة المتاحة */
  padding: 10px;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
  height: 40px;  /* تعيين ارتفاع ثابت لحقل الإدخال */
}

button {
  padding: 10px 15px; /* يضيف مساحة داخل الزر */
  background: #2980b9;
  color: #fff;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
  height: 38px;
    margin-bottom: 18px;
}

button:hover {
  background: #3498db;
}

button:active {
  background: #2980b9;
}
input#updateBtn {
    background: #4CAF50; /* استخدام لون أخضر ناعم */
    background: linear-gradient(145deg, #4CAF50, #3e8e41); /* تدرج لوني ناعم */
    color: #fff; /* جعل النص أبيض ليتناسب مع اللون */
    border: none;
    padding: 10px 20px; /* مساحة داخلية للزر */
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل ناعم */
    transition: background 0.3s ease, box-shadow 0.3s ease; /* تأثير عند التمرير */
}

input#updateBtn:hover {
    background: linear-gradient(145deg, #66bb6a, #388e3c); /* تغيير التدرج عند التمرير */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* تأثير ظل عند التمرير */
}

input#updateBtn:active {
    background: #3e8e41; /* لون ثابت عند الضغط */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل ناعم عند الضغط */
}