/* استایل‌های عمومی */
.wplm-user-licenses,
.wplm-license-details {
    max-width: 100%;
    margin: 20px 0;
    font-family: YekanBakh;
    font-weight: 300;
}

.wplm-user-licenses h3 {
        padding: 20px 20px;
    font-size: 16px;
    margin: 0px !important;
    margin-bottom: 20px !important;
    background: #f9f9f9;
    border-radius: 10px;
    color: #383838 !important;
    font-weight: 400;
}

a.wplm-back-link {
        padding: 20px 20px;
    font-size: 14px;
    margin: 0px !important;
    margin-bottom: 20px !important;
    background: #f9f9f9;
    border-radius: 10px;
    color: #383838 !important;
    font-weight: 400;
}

.wplm-alert {
    padding: 15px;
    background: #fff8e5;
    border: 1px solid #ffd167;
    border-radius: 4px;
    margin: 20px 0;
}

.wplm-notice {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.wplm-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wplm-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* جداول */
.wplm-licenses-table,
.wplm-info-table,
.wplm-activations-table {
    width: 100%;
    border-collapse: collapse;
border-radius: 10px;
  overflow: hidden;
    
}

.wplm-licenses-table th,
.wplm-licenses-table td,
.wplm-info-table th,
.wplm-info-table td,
.wplm-activations-table th,
.wplm-activations-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.wplm-licenses-table th,
.wplm-activations-table th {
    background-color: #F5F5F5;
}

.wplm-info-table th {
    width: 30%;
    background-color: #f5f5f5;
}

/* وضعیت‌ها */
.license-status,
.activation-status {
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 300;
    font-size: 13px;
    display: inline-block;
}

.license-status.active,
.activation-status.active {
    background-color: #d4edda;
    color: #155724;
}

.license-status.inactive,
.activation-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.license-status.suspended {
    background-color: #fff3cd;
    color: #856404;
}

/* فرم‌ها */
.wplm-status-form,
.wplm-activation-form {
    display: flex;
    align-items: center;
    gap: 0px;
    margin: 10px 0;
}



.wplm-save-status,
.wplm-add-activation-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.wplm-save-status:hover,
.wplm-add-activation-btn:hover {
    background: #135e96;
}

.wplm-domain-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    max-width: 100%;
}

.wplm-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2271b1;
    text-decoration: none;
}

.wplm-back-link:hover {
    text-decoration: underline;
}

.wplm-view-details {
    color: #2271b1;
    text-decoration: none;
}

.wplm-view-details:hover {
    text-decoration: underline;
}

/* بخش افزودن فعال‌سازی */
.wplm-add-activation {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.wplm-form-group {
    margin-bottom: 10px;
}

.wplm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


.wplm-license-info {
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 400px;
}


.top-license-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-license-info-card
 {
    display: flex;
    flex-direction: column;
    margin:15px 0px;
}

.title-license-info-card p
 {
    font-size: 20px;
    color: #4e4e4e;
    font-weight: 400;
}

.license-code {
    background: #F4F4F4;
    padding: 8px;
    text-align: center;
    font-size: 17px;
    border-radius: 10px;
    color: #616071;
    font-family:IranYekan;
    font-weight: 300;
}

button.wplm-save-status {
    border: none;
    border-radius: 10px;
    background: #EEF0FF;
    color: #327AF4;
    font-weight: 300;
}

button.wplm-save-status:hover{
        background: #d7dcff;
            color: #327AF4;

}
button.wplm-save-status:focus{
        background: #d7dcff;
            color: #327AF4;

}

.wplm-status-select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-left: 13px;
    appearance: none;
    background: url(https://elementorico.ir/wp-content/uploads/2025/06/Alt-Arrow-Down-Streamline-Solar-Ar-1.svg);
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 10px;
    color: #484848;
}

a.wplm-back-link {
    width: 100%;
}

.wplm-license-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
    align-items: flex-start;
}

.wplm-form-group {
    display: flex
;
    gap: 10px;
}

input#domain {
    border: 1px solid #ddd;
    border-radius: 10px;
}

button.wplm-add-activation-btn {
    border: none;
    color: #6e85f4;
    background: #eef0ff;
    font-weight: 300;
    border-radius: 10px;
}

button.wplm-add-activation-btn:hover{
        background: #eef0ff;
color: #6e85f4;
}
button.wplm-add-activation-btn:focus{
        background: #eef0ff;
        color: #6e85f4;

}

.wplm-license-activations {
    width: calc(100% - 450px);
}

@media only screen and (max-width: 800px) {
    .wplm-license-activations {
    width: 100%;
}
}

.domain-child{
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 6px -1px rgba(0, 0, 0, 0.05);
    transition:0.3s;
}
.domain-child:hover{
    transform: translateY(-5px);
}
p.wplm-status-note {
    margin-top: 15px;
    padding: 10px;
    background: #ffdcdc;
    color: #c95b5b;
    border-radius: 10px;
    line-height: 25px;
}

.domains-box {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr);
}
  @media (max-width: 1024px){
    .domains-box{ grid-template-columns: repeat(1, 1fr); } /* دسکتاپ: ۳ ستون */
  }

/* اضافه کردن استایل برای وضعیت تعلیق دامنه */
.activation-status.suspended {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.activation-status.blocked,
.activation-status.suspended {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    display: inline-block;
}

.domain-info {
    display: flex;
    justify-content: space-between;
}

.domain-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top:15px;
}

button.save-status-domain {
    border: none;
    font-size: 14px;
    font-weight: 300;
    background: #f4f4f4;
    color: #676676;
    border-radius: 10px;
}

button.save-status-domain:hover{
    background: #f4f4f4;
        color: #676676;

}
button.save-status-domain:hover{
    background: #f4f4f4;
        color: #676676;

}


.domain-info p {
    font-family: IranYekan;
}

.wplm-licenses-table td {
  padding: 10px !important;
  text-align:center;
  vertical-align: middle;
}

.wplm-licenses-table th {
  padding: 10px !important;
  font-size: 16px;
  font-weight: 400;
}

.license-child {
    width: 300px;
    border: 1px solid #eaeaea;
    box-shadow: 0 6px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition:0.3s;
}
.license-child:hover{
    transform: translateY(-5px);
}

.licenses-box {
    display: flex;
    gap: 20px;
    flex-wrap:wrap;
}

.license-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.license-action-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

a.wplm-view-details {
    color: #5f78ff !important;
}

  @media (max-width: 800px){
    .wplm-license-info{ width:100%;
  }