/* Bengali Comment: পুরো ওয়েবসাইটের জন্য বেস স্টাইল এবং সুন্দর ফন্ট */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* Bengali Comment: মূল কন্টেইনারের ডিজাইন (ইউজার ও এডমিন প্যানেল) */
.main-container {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
    border-top: 4px solid #4a90e2;
}

h1, h2 {
    color: #1a253c;
    text-align: center;
    font-weight: 700;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; margin-top: 30px; }

/* Bengali Comment: ফর্ম ইনপুটের ডিজাইন */
input[type="url"], input[type="text"], input[type="password"] {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}
input[type="url"]:focus, input[type="text"]:focus, input[type="password"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
    outline: none;
}

/* Bengali Comment: জেনারেট হওয়া লিঙ্কের রেজাল্ট বক্স */
#result {
    margin-top: 25px;
    padding: 15px;
    background-color: #e8f0fe;
    border: 1px solid #d1e3ff;
    border-radius: 8px;
    text-align: center;
    word-wrap: break-word;
}
#result a {
    color: #1c5dab;
    font-weight: 500;
    text-decoration: none;
}

/* Bengali Comment: এডমিন প্যানেলের টেবিলের ডিজাইন */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #e0e6ed; padding: 12px; text-align: left; }
th { background-color: #f5f7fa; font-weight: 500; }
td { word-break: break-all; }

/* ----------------------------------------------------------------- */
/*            API কন্টেন্টের জন্য নতুন এবং আকর্ষণীয় ডিজাইন            */
/* ----------------------------------------------------------------- */

.safelink-container {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    padding: 35px;
    max-width: 550px;
    width: 90%;
    margin: 50px auto; /* Bengali Comment: এটি কন্টেইনারটিকে ডিসপ্লের মাঝ বরাবর রাখবে */
    text-align: center;
    border: 1px solid #e7e7e7;
    overflow: hidden;
    position: relative;
}
.safelink-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

.safelink-container h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a253c;
    margin-top: 10px;
    margin-bottom: 15px;
}
.safelink-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Bengali Comment: কাউন্টডাউন টেক্সট */
#countdown-message {
    font-weight: 500;
    color: #333;
    font-size: 18px;
}
#countdown {
    color: #d9534f;
    font-weight: 700;
}

/* Bengali Comment: চূড়ান্ত 3D অ্যানিমেটেড বাটনের ডিজাইন */
.safelink-btn {
    position: relative;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: none; /* Bengali Comment: বাটনগুলো ডিফল্টভাবে লুকানো থাকবে */
}
.safelink-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.safelink-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Bengali Comment: 'Get Link' বাটনের জন্য থ্রিডি স্টাইল */
#get-link-btn {
    background: #28a745; /* সবুজ রঙ */
    box-shadow: 0 6px #1c6e2e;
}
#get-link-btn:hover { background: #218838; }

/* Bengali Comment: 'Go to Link' বাটনের জন্য থ্রিডি স্টাইল */
#go-to-link-btn {
    background: #007bff; /* নীল রঙ */
    box-shadow: 0 6px #0056b3;
}
#go-to-link-btn:hover { background: #0069d9; }

/* Bengali Comment: লোডিং বাটনের অ্যানিমেশন */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 40px;
}
.dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}