html{line-height:1.15;-webkit-text-size-adjust:100%}*,:after,:before{box-sizing:border-box}body{background-color:#fff;color:#333;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{color:inherit;font-family:inherit;font-weight:500;line-height:1.2;margin-block-end:1rem;margin-block-start:.5rem}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-block-end:.9rem;margin-block-start:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;white-space:pre-wrap}a{background-color:transparent;color:#c36;text-decoration:none}a:active,a:hover{color:#336}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}abbr[title]{border-block-end:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;height:auto;max-width:100%}details{display:block}summary{display:list-item}figcaption{color:#333;font-size:16px;font-style:italic;font-weight:400;line-height:1.4}[hidden],template{display:none}@media print{*,:after,:before{background:transparent!important;box-shadow:none!important;color:#000!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap!important}blockquote,pre{-moz-column-break-inside:avoid;border:1px solid #ccc;break-inside:avoid}thead{display:table-header-group}img,tr{-moz-column-break-inside:avoid;break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{-moz-column-break-after:avoid;break-after:avoid}}label{display:inline-block;line-height:1;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:1rem;line-height:1.5;margin:0}input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{border:1px solid #666;border-radius:3px;padding:.5rem 1rem;transition:all .3s;width:100%}input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border-color:#333}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;width:auto}[type=button],[type=submit],button{background-color:transparent;border:1px solid #c36;border-radius:3px;color:#c36;display:inline-block;font-size:1rem;font-weight:400;padding:.5rem 1rem;text-align:center;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}[type=button]:focus:not(:focus-visible),[type=submit]:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}[type=button]:focus,[type=button]:hover,[type=submit]:focus,[type=submit]:hover,button:focus,button:hover{background-color:#c36;color:#fff;text-decoration:none}[type=button]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}select{display:block}table{background-color:transparent;border-collapse:collapse;border-spacing:0;font-size:.9em;margin-block-end:15px;width:100%}table td,table th{border:1px solid hsla(0,0%,50%,.502);line-height:1.5;padding:15px;vertical-align:top}table th{font-weight:700}table tfoot th,table thead th{font-size:1em}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-block-start:1px solid hsla(0,0%,50%,.502)}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:hsla(0,0%,50%,.071)}table tbody tr:hover>td,table tbody tr:hover>th{background-color:hsla(0,0%,50%,.102)}table tbody+tbody{border-block-start:2px solid hsla(0,0%,50%,.502)}@media(max-width:767px){table table{font-size:.8em}table table td,table table th{line-height:1.3;padding:7px}table table th{font-weight:400}}dd,dl,dt,li,ol,ul{background:transparent;border:0;font-size:100%;margin-block-end:0;margin-block-start:0;outline:0;vertical-align:baseline}
/* HORSE FILTER */

.horse-filter{
background:#f7f7f7;
padding:20px;
margin-bottom:30px;
border-radius:8px;
}

.horse-filter form{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:10px;
}

.horse-filter input,
.horse-filter select{
padding:8px;
border:1px solid #ccc;
border-radius:4px;
font-size:14px;
width:100%;
}

.horse-filter button{
background:#2c7a2c;
color:#fff;
border:none;
padding:10px;
border-radius:5px;
cursor:pointer;
grid-column:1/-1;
}

.horse-filter button:hover{
background:#1f5d1f;
}


/* HORSE LIST */

.horse-list{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:20px;
}

.horse-item{
border:1px solid #ddd;
padding:15px;
border-radius:8px;
background:#fff;
transition:0.2s;
}

.horse-item:hover{
box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.horse-item a{
text-decoration:none;
font-weight:bold;
color:#333;
font-size:16px;
}



.horse-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    direction: rtl;
    text-align: center;
}

.horse-table th {
    background: #444;
    color: #fff;
    padding: 10px;
}

.horse-table td {
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

.horse-table tr:nth-child(even) {
    background: #f8f8f8;
}

.view-btn {
    background: #1976d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.view-btn:hover {
    background: #0d47a1;
}


.horse-archive-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}









        .file-input-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .btn-select-images, .btn-select-videos {
            background: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s;
        }
.btn-select-file{

background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2);

}

.btn-select-file:hover {
background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2);
}

        .btn-select-images:hover { background: #0056b3; }
        .btn-select-videos:hover { background: #0056b3; }

        .preview-item {
            position: relative;
            border: 2px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }

        .remove-preview-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(220, 53, 69, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .remove-preview-btn:hover {
            background: #dc3545;
            transform: scale(1.1);
        }

/* استایل‌های کلی فرم */
.page-content {
    direction: rtl;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;

}

.horse-ad-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.horse-ad-form:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* تیترهای فرم */
.horse-ad-form h3 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.horse-ad-form h3:first-child {
    margin-top: 0;
}

.horse-ad-form h3:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: #e74c3c;
}

/* پاراگراف‌های فرم */
.horse-ad-form p {
    margin-bottom: 20px;
    position: relative;
}

.horse-ad-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}

.horse-ad-form label:after {
    content: ' *';
    color: #e74c3c;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.horse-ad-form label[for*="show_phone"]:after,
.horse-ad-form label[for*="body_condition"]:after,
.horse-ad-form label[for*="purpose"]:after,
.horse-ad-form label[for*="weight"]:after,
.horse-ad-form label[for*="district"]:after,
.horse-ad-form label[for*="competition_history"]:after,
.horse-ad-form label[for*="offspring_count"]:after,
.horse-ad-form label[for*="last_checkup"]:after,
.horse-ad-form label[for*="other_contact"]:after,
.horse-ad-form label[for*="contact_notes"]:after {
    content: '';
}

.horse-ad-form label:hover:after {
    opacity: 1;
}

/* فیلدهای ورودی */
.horse-ad-form input[type="text"],
.horse-ad-form input[type="number"],
.horse-ad-form input[type="tel"],
.horse-ad-form input[type="email"],
.horse-ad-form input[type="url"],
.horse-ad-form input[type="date"],
.horse-ad-form input[type="password"],
.horse-ad-form select,
.horse-ad-form textarea {
     width: 100%;
    padding: 7px 10px;
    border: 1px solid rgb(223, 230, 233);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: 0.3s;
    background: white;
    box-sizing: border-box;
    font-weight: 400;
    font-family: 'IRANSansWebFaNum2';
    margin-top: 3px;
}

.horse-ad-form input:focus,
.horse-ad-form select:focus,
.horse-ad-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: #fff;
}

.horse-ad-form input[required]:not(:placeholder-shown):invalid,
.horse-ad-form select[required]:not(:placeholder-shown):invalid {
    border-color: #e74c3c;
}

.horse-ad-form input[required]:not(:placeholder-shown):valid,
.horse-ad-form select[required]:not(:placeholder-shown):valid {
    border-color: #2ecc71;
}

/* استایل select */
.horse-ad-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
    padding-left: 40px;
}

/* استایل textarea */
.horse-ad-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* استایل دکمه submit */
.horse-ad-form input[type="submit"] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 30px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.horse-ad-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.horse-ad-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

/* استایل group برای بخش‌های خاص */
.form-group {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-group:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.form-group label {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

.form-group label:after {
    content: ' *';
    color: #e74c3c;
    font-size: 18px;
}

.form-group label[for*="video_url"]:after {
    content: '';
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* استایل‌های موجود در کد HTML */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-select-images, 
.btn-select-videos {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2);
}

.btn-select-images:hover { 
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
}

.btn-select-videos:hover { 
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
}

#video_url {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#video_url:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.preview-item {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.remove-preview-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

.remove-preview-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.4);
}

/* کانتینر پیش‌نمایش تصاویر */
#image-preview-container {
    margin-top: 20px;
}

#image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

#image-preview-list .preview-item {
    width: 160px;
    height: 160px;
}

#image-preview-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* کانتینر پیش‌نمایش ویدیو */
#video-preview {
    margin-top: 20px;
}

#video-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

#video-preview-list .preview-item {
    width: 220px;
    min-height: 150px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* استایل اطلاع‌رسانی فایل‌ها */
#selected-files-info,
#video-input-files-info {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استایل برای دستگاه‌های موبایل */
@media (max-width: 768px) {
    .page-content {
        padding: 15px;
    }
    
    .horse-ad-form {
        padding: 20px;
        border-radius: 10px;
    }
    
    .file-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    #video_url {
        min-width: auto;
        margin-top: 10px;
    }
    
    .btn-select-images,
    .btn-select-videos {
        width: 100%;
        justify-content: center;
    }
    
    #image-preview-list .preview-item {
        width: calc(50% - 10px);
        height: 140px;
    }
    
    #video-preview-list .preview-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .horse-ad-form h3 {
        font-size: 20px;
    }
    
    .horse-ad-form input[type="submit"] {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .horse-ad-form {
        padding: 15px;
    }
    
    #image-preview-list .preview-item {
        width: 100%;
        height: 160px;
    }
    
    .horse-ad-form input[type="text"],
    .horse-ad-form input[type="number"],
    .horse-ad-form input[type="tel"],
    .horse-ad-form input[type="email"],
    .horse-ad-form input[type="url"],
    .horse-ad-form input[type="date"],
    .horse-ad-form select,
    .horse-ad-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form-group {
        padding: 15px;
    }
}

/* استایل برای حالت دارک مود */
@media (prefers-color-scheme: dark) {
    .horse-ad-form {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #4a6572;
        color: #ecf0f1;
    }
    
    .horse-ad-form h3 {
        color: #ecf0f1;
        border-bottom-color: #3498db;
    }
    
    .horse-ad-form label {
        color: #bdc3c7;
    }
    
    .horse-ad-form input[type="text"],
    .horse-ad-form input[type="number"],
    .horse-ad-form input[type="tel"],
    .horse-ad-form input[type="email"],
    .horse-ad-form input[type="url"],
    .horse-ad-form input[type="date"],
    .horse-ad-form select,
    .horse-ad-form textarea {
        background: #34495e;
        border-color: #4a6572;
        color: #ecf0f1;
    }
    
    .horse-ad-form input:focus,
    .horse-ad-form select:focus,
    .horse-ad-form textarea:focus {
        background: #2c3e50;
        border-color: #3498db;
    }
    
    .form-group {
        background: #2c3e50;
        border-color: #4a6572;
    }
    
    .preview-item {
        background: #34495e;
        border-color: #4a6572;
    }
    
    .form-text {
        color: #95a5a6;
    }
}

/* انیمیشن‌های ظریف */
.horse-ad-form * {
    transition: all 0.3s ease;
}

/* استایل‌های بهبود یافته برای نمایش بهتر */
::-webkit-input-placeholder {
    color: #95a5a6;
    opacity: 0.7;
}

:-ms-input-placeholder {
    color: #95a5a6;
    opacity: 0.7;
}

::placeholder {
    color: #95a5a6;
    opacity: 0.7;
}

/* استایل برای scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* استایل برای focus قابل مشاهده */
*:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

       























.pedigree-front{
    display: grid;
    grid-template-columns: 13% 13% 13% 13% 20% 20%;
    grid-template-rows: repeat(32, 20px);
    gap: 2px;
    padding: 20px;
    overflow: hidden;
}

.pedigree-front .ped-box{
border: 0px solid #222;
    font-size: 11px;
    padding: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
}
.ped-box.sire{
background: #cfcfcf;
}
.ped-box.dam{
background: #d8c08a;
}
.ped-box.horse{
    background: #dff0ff;
}

.pedigree{
display: grid;
    grid-template-columns: 13% 13% 13% 15% 22% 24%;
    grid-template-rows: repeat(32, 20px);
    gap: 2px;
    padding: 20px;
    overflow: auto;

}

/* box */

.ped-box{
    border: 2px solid #222;
    font-size: 12px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap;
    align-items: center;
}

.ped-box input{
width:100%;
font-size:11px;
margin-bottom:2px;
}

/* colors */

.sire{background:#cfcfcf;}
.dam{background:#d8c08a;}
.horse{background:#dff0ff;}





.ped-box.dam5{
background: #d8c08a;
    border: 0px solid #222;
    font-size: 11px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.ped-box.sire5{
    background: #cfcfcf;
    border: 0px solid #222;
    font-size: 11px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
}



.ped-box.dam6{
background: #d8c08a;
    border: 0px solid #222;
    font-size: 11px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.ped-box.sire6{
    background: #cfcfcf;
    border: 0px solid #222;
    font-size: 11px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-align: center;
}


















.form-sec {
    margin: 25px 0;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.horse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px 30px;
}

.horse-grid .field {
    display: flex;
    flex-direction: column;
}

.horse-grid label {
    font-weight: bold;
    margin-bottom: 5px;
}

.horse-grid input,
.horse-grid select {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .horse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .horse-grid {
        grid-template-columns: 1fr;
    }
}




















/* جدول شجره‌نامه کاربر */
.user-horse-table {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

/* سر جدول */
.user-horse-table thead {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
}

.user-horse-table thead th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* ردیف‌ها */
.user-horse-table tbody tr {
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.user-horse-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.user-horse-table tbody tr:hover {
    background-color: #eef2ff;
    transform: translateY(-1px);
}

/* سلول‌ها */
.user-horse-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

/* وضعیت‌ها */
.user-horse-table .status-cell {
    font-weight: 600;
}

.user-horse-table .status-approved {
    color: #059669; /* سبز */
}

.user-horse-table .status-pending {
    color: #d97706; /* نارنجی */
}

.user-horse-table .status-rejected {
    color: #dc2626; /* قرمز */
}

/* لینک "مشاهده" */
.user-horse-table a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.user-horse-table a:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.user-horse-table a::before {
    content: "👁";
    font-size: 11px;
}

/* ریسپانسیو: نمایش کارت‌مانند در موبایل */
@media (max-width: 768px) {
    .user-horse-table,
    .user-horse-table thead,
    .user-horse-table tbody,
    .user-horse-table th,
    .user-horse-table td,
    .user-horse-table tr {
        display: block;
        width: 100%;
    }

    .user-horse-table {
        box-shadow: none;
        background: transparent;
    }

    .user-horse-table thead {
        display: none;
    }

    .user-horse-table tbody tr {
        background: #ffffff;
        margin-bottom: 12px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
        padding: 8px 10px;
    }

    .user-horse-table td {
        border: none;
        padding: 4px 0;
        position: relative;
        padding-right: 7em; /* فضا برای لیبل */
    }

    .user-horse-table td::before {
        position: absolute;
        right: 10px;
        top: 0;
        bottom: 0;
        margin: auto 0;
        height: fit-content;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }

    .user-horse-table td:nth-child(1)::before {
        content: "نام ";
    }

    .user-horse-table td:nth-child(2)::before {
        content: "تاریخ ایجاد";
    }

    .user-horse-table td:nth-child(3)::before {
        content: "وضعیت";
    }

    .user-horse-table td:nth-child(4)::before {
        content: "نمایش";
    }

    .user-horse-table a {
        margin-top: 4px;
    }
}

