/**
 * Developer: amirhossinbanavand
 * Website: banclub.ir
 */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title svg {
    fill: var(--primary-purple);
    width: 28px;
    height: 28px;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: var(--danger);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: var(--text-muted);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 45, 226, 0.4);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(142, 45, 226, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
}

.product-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-active { background: rgba(0, 230, 118, 0.1); color: var(--success); }
.status-inactive { background: rgba(255, 75, 75, 0.1); color: var(--danger); }

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-purple);
    margin: 10px 0;
}

.product-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-delete {
    background: rgba(255, 75, 75, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}