/* فونت دانا */
@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 10;
    src: url('./fonts/woff2/Dana-Hairline.woff2') format('woff2'),
        url('./fonts/woff/Dana-Hairline.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 100;
    src: url('./fonts/woff2/Dana-Thin.woff2') format('woff2'),
        url('./fonts/woff/Dana-Thin.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 200;
    src: url('./fonts/woff2/Dana-UltraLight.woff2') format('woff2'),
        url('./fonts/woff/Dana-UltraLight.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 300;
    src: url('./fonts/woff2/Dana-Light.woff2') format('woff2'),
        url('./fonts/woff/Dana-Light.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/woff2/Dana-Medium.woff2') format('woff2'),
        url('./fonts/woff/Dana-Medium.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 600;
    src: url('./fonts/woff2/Dana-DemiBold.woff2') format('woff2'),
        url('./fonts/woff/Dana-DemiBold.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 800;
    src: url('./fonts/woff2/Dana-ExtraBold.woff2') format('woff2'),
        url('./fonts/woff/Dana-ExtraBold.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 900;
    src: url('./fonts/woff2/Dana-Black.woff2') format('woff2'),
        url('./fonts/woff/Dana-Black.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: bold;
    src: url('./fonts/woff2/Dana-Bold.woff2') format('woff2'),
        url('./fonts/woff/Dana-Bold.woff') format('woff');
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: normal;
    src: url('./fonts/woff2/Dana-Regular.woff2') format('woff2'),
        url('./fonts/woff/Dana-Regular.woff') format('woff');
}

/* استایل‌های پایه */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: dana, sans-serif;
    background: #fafafa;
    color: #333;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 60px auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sub-title {
    font-size: 1rem;
    color: #7f8c8d;
}

section {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 20px;
    color: #34495e;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #34495e;
}

select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
}

.radio-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.generate-btn {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    width: 100%;
}

.generate-btn:hover {
    background: #1e8449;
}

.output-wrapper {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecf0f1;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    word-break: break-all;
}

.ipv6-outputs {
    margin-top: 15px;
}

.ipv6-item {
    margin-bottom: 15px;
}

.copy-btn {
    background: #2980b9;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #1c5980;
}

.copy-btn svg {
    display: block;
}