/* Enhanced Alert Styles for WordPress Admin */
.alert {
    padding: 12px 15px;
    margin: 15px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-info::before {
    /* content: "\f534"; */
    font-family: dashicons;
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-success::before {
    content: "\f147";
    font-family: dashicons;
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    padding-left: 40px;
    position: relative;
}

.alert-warning::before {
    content: "\f534";
    font-family: dashicons;
    font-size: 20px;
    position: absolute;
    left: 12px;
    top: 13px;
    color: #f0b849;
    line-height: 1.4;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: top;
}

.alert-warning p:first-child {
    margin-top: 5px;
    line-height: 1.4;
}

.alert-warning p,
.alert-warning ol {
    margin-left: 0;
    padding-left: 0;
}

.alert-warning ol {
    margin: 10px 0;
    padding-left: 20px;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-error::before {
    content: "\f534";
    font-family: dashicons;
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Dismissible alerts */
.alert.is-dismissible {
    padding-right: 38px;
}

.alert .notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    border: none;
    margin: 0;
    padding: 9px;
    background: none;
    color: #787c82;
    cursor: pointer;
}

.alert .notice-dismiss:hover {
    color: #d63638;
}

.alert .notice-dismiss::before {
    background: none;
    color: #787c82;
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: never;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* WordPress admin specific adjustments */
.wrap .alert {
    margin: 5px 0 15px;
}

.o2oeinvoice-panel .alert {
    margin: 0 0 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .alert {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .alert::before {
        font-size: 14px;
    }
}

/* WordPress Admin Button Extensions */
.button.button-success,
input[type="submit"].button-success,
input[type="button"].button-success,
a.button.button-success {
    background: #00a32a !important;
    border-color: #00a32a !important;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.button.button-success:hover,
.button.button-success:focus,
input[type="submit"].button-success:hover,
input[type="submit"].button-success:focus,
input[type="button"].button-success:hover,
input[type="button"].button-success:focus,
a.button.button-success:hover,
a.button.button-success:focus {
    background: #008a20 !important;
    border-color: #008a20 !important;
    color: #fff !important;
}

.button.button-success:active,
input[type="submit"].button-success:active,
input[type="button"].button-success:active,
a.button.button-success:active {
    background: #007017 !important;
    border-color: #007017 !important;
    color: #fff !important;
}

.button.button-success.disabled,
.button.button-success:disabled,
.button.button-success[disabled],
input[type="submit"].button-success.disabled,
input[type="submit"].button-success:disabled,
input[type="submit"].button-success[disabled],
input[type="button"].button-success.disabled,
input[type="button"].button-success:disabled,
input[type="button"].button-success[disabled],
a.button.button-success.disabled {
    background: #00a32a !important;
    border-color: #00a32a !important;
    color: #fff !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

.button.button-warning,
input[type="submit"].button-warning,
input[type="button"].button-warning,
a.button.button-warning {
    background: #f0b849 !important;
    border-color: #f0b849 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.button.button-warning:hover,
.button.button-warning:focus,
input[type="submit"].button-warning:hover,
input[type="submit"].button-warning:focus,
input[type="button"].button-warning:hover,
input[type="button"].button-warning:focus,
a.button.button-warning:hover,
a.button.button-warning:focus {
    background: #eaa600 !important;
    border-color: #eaa600 !important;
    color: #fff !important;
}

.button.button-warning:active,
input[type="submit"].button-warning:active,
input[type="button"].button-warning:active,
a.button.button-warning:active {
    background: #d49500 !important;
    border-color: #d49500 !important;
    color: #fff !important;
}

.button.button-warning.disabled,
.button.button-warning:disabled,
.button.button-warning[disabled],
input[type="submit"].button-warning.disabled,
input[type="submit"].button-warning:disabled,
input[type="submit"].button-warning[disabled],
input[type="button"].button-warning.disabled,
input[type="button"].button-warning:disabled,
input[type="button"].button-warning[disabled],
a.button.button-warning.disabled {
    background: #f0b849 !important;
    border-color: #f0b849 !important;
    color: #fff !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

.button.button-danger,
input[type="submit"].button-danger,
input[type="button"].button-danger,
a.button.button-danger {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.button.button-danger:hover,
.button.button-danger:focus,
input[type="submit"].button-danger:hover,
input[type="submit"].button-danger:focus,
input[type="button"].button-danger:hover,
input[type="button"].button-danger:focus,
a.button.button-danger:hover,
a.button.button-danger:focus {
    background: #c92c2e !important;
    border-color: #c92c2e !important;
    color: #fff !important;
}

.button.button-danger:active,
input[type="submit"].button-danger:active,
input[type="button"].button-danger:active,
a.button.button-danger:active {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
    color: #fff !important;
}

.button.button-danger.disabled,
.button.button-danger:disabled,
.button.button-danger[disabled],
input[type="submit"].button-danger.disabled,
input[type="submit"].button-danger:disabled,
input[type="submit"].button-danger[disabled],
input[type="button"].button-danger.disabled,
input[type="button"].button-danger:disabled,
input[type="button"].button-danger[disabled],
a.button.button-danger.disabled {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

/* Small button variations */
.button-small.button-success,
.button-small.button-warning,
.button-small.button-danger,
input[type="submit"].button-small.button-success,
input[type="submit"].button-small.button-warning,
input[type="submit"].button-small.button-danger,
input[type="button"].button-small.button-success,
input[type="button"].button-small.button-warning,
input[type="button"].button-small.button-danger {
    height: 24px !important;
    line-height: 22px !important;
    padding: 0 8px 1px !important;
    font-size: 11px !important;
}

/* Large button variations */
.button-large.button-success,
.button-large.button-warning,
.button-large.button-danger,
input[type="submit"].button-large.button-success,
input[type="submit"].button-large.button-warning,
input[type="submit"].button-large.button-danger,
input[type="button"].button-large.button-success,
input[type="button"].button-large.button-warning,
input[type="button"].button-large.button-danger {
    height: 32px !important;
    line-height: 30px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
}

/* Hero button variations */
.button-hero.button-success,
.button-hero.button-warning,
.button-hero.button-danger,
input[type="submit"].button-hero.button-success,
input[type="submit"].button-hero.button-warning,
input[type="submit"].button-hero.button-danger,
input[type="button"].button-hero.button-success,
input[type="button"].button-hero.button-warning,
input[type="button"].button-hero.button-danger {
    font-size: 14px !important;
    height: 46px !important;
    line-height: 44px !important;
    padding: 0 36px !important;
}

/* Enhanced panel styling to match WordPress admin */
.o2oeinvoice-panel {
    background-color: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.o2oeinvoice-panel .panel-header {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 20px;
}

.o2oeinvoice-panel .panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.o2oeinvoice-panel .panel-body {
    padding: 15px;
    background-color: #fff;
    border: none;
} 