/**
 * DB Reset Pro Admin Styles
 * 
 * Styles for the DB Reset Pro plugin admin interface.
 */

.dup-db-reset-pro-container {
    max-width: 1000px;
}

.dup-db-reset-pro-description {
    margin: 20px 0;
    background: #fff;
    padding: 15px 20px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}


.dup-db-reset-pro-card {
    background: #fff;
    padding: 20px;
    margin: 0 0 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.dup-db-reset-pro-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.dup-db-reset-pro-column {
    margin-bottom: 20px;
}

.dup-db-reset-pro-column-left {
    flex: 0 0 100%;
}

.dup-db-reset-pro-column-right {
    flex: 0 0 100%;
}

@media (min-width: 782px) {
    .dup-db-reset-pro-column-left {
        flex: 0 0 calc(60% - 10px);
    }
    
    .dup-db-reset-pro-column-right {
        flex: 0 0 calc(40% - 10px);
    }
}

.dup-db-reset-pro-summary-item {
    margin-bottom: 20px;
}

.dup-db-reset-pro-summary-item h3 {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.dup-db-reset-pro-danger-heading {
    color: #dc3545;
    font-weight: 600;
}

.dup-db-reset-pro-safe-heading {
    color: #28a745;
    font-weight: 600;
}

.dup-db-reset-pro-summary-item ul {
    margin-left: 20px;
}

.dup-db-reset-pro-summary-item li {
    margin-bottom: 8px;
}

.dup-db-reset-pro-settings {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
}

.dup-db-reset-pro-setting {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dup-db-reset-pro-setting code{
    font-size: 12px;
}

.dup-db-reset-pro-setting:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dup-dup-db-reset-pro-code-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.dup-dup-db-reset-pro-code-input input {
    flex: 1;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 13px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    margin-right: 10px;
}

.dup-db-reset-pro-copy-button {
    background: #f8f8f8;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3c434a;
}

.dup-db-reset-pro-copy-button:hover {
    background: #f0f0f1;
    border-color: #c3c4c7;
}

.dup-db-reset-pro-copy-button.copied {
    background: #edfaef;
    border-color: #68de7c;
    color: #00a32a;
}

.dup-db-reset-pro-plugins-list {
    margin-left: 20px;
}

.dup-db-reset-pro-form {
    padding: 20px;
    background: #fff0f0;
    border-radius: 5px;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
    margin-top: 25px;
    position: relative;
}

.dup-db-reset-pro-form:before {
    content: "";
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dup-db-reset-pro-form h3 {
    color: #dc3545;
    font-weight: 600;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffccd1;
}

.dup-db-reset-pro-confirmation {
    position: relative;
}

.dup-db-reset-pro-confirmation p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Keep the warning icon style for future use */
.dup-db-reset-pro-warning-icon {
    font-size: 18px;
    margin-right: 5px;
    vertical-align: middle;
}

.dup-db-reset-pro-confirmation p strong {
    background-color: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.dup-db-reset-pro-input-wrapper {
    margin-bottom: 20px;
}

.dup-db-reset-pro-input-wrapper input {
    border-color: #dc3545;
    border-width: 2px;
    padding: 8px 12px;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
}

.dup-db-reset-pro-input-wrapper input:focus {
    box-shadow: 0 0 0 1px #dc3545;
    outline: none;
}

.dup-db-reset-pro-submit-wrapper {
    display: flex;
    justify-content: flex-start;
}

.dup-db-reset-pro-submit-wrapper button {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Pulsing effect for the reset button */
.dup-db-reset-pro-submit-wrapper button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Danger button style */
.button-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.button-danger:hover,
.button-danger:focus {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.button-danger:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dc3545 !important;
}

/* Response message styling */
.dup-db-reset-pro-success {
    border-left-color: #46b450;
}

.dup-db-reset-pro-error {
    border-left-color: #dc3232;
}

/* Simple disabled button styling */
#db-reset-pro-submit:disabled,
#db-reset-pro-submit.button-primary-disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Basic warning message styling */
.dup-db-reset-pro-warning-message {
    color: #856404;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff3cd;
    border-radius: 3px;
    border-left: 3px solid #ffeeba;
    text-align: center;
}

/* Code styling */
.dup-db-reset-pro-code {
    background: #f0f0f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}