/* 
 * Blue Theme Override for SPMB Politeknik Indonusa
 * Mengubah semua elemen hijau (green/success) menjadi biru
 * Sesuai dengan branding Politeknik Indonusa
 */

/* Bootstrap Success (Green) to Blue Override */

/* Panel Success -> Panel Blue */
.panel-success {
    border-color: #0056b3 !important;
}

.panel-success > .panel-heading {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

.panel-success > .panel-footer {
    background-color: #e3f2fd !important;
    border-color: #0056b3 !important;
}

/* Button Success -> Button Blue */
.btn-success {
    background-color: #0056b3 !important;
    border-color: #004494 !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    background-color: #004494 !important;
    border-color: #003875 !important;
    color: #fff !important;
}

.btn-success:disabled,
.btn-success.disabled {
    background-color: #6c9dcf !important;
    border-color: #5a8bc0 !important;
}

/* Alert Success -> Alert Blue */
.alert-success {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

.alert-success hr {
    border-top-color: #abdde5 !important;
}

.alert-success .alert-link {
    color: #062c33 !important;
}

/* Label Success -> Label Blue */
.label-success {
    background-color: #0056b3 !important;
}

/* Badge Success -> Badge Blue */
.badge-success {
    background-color: #0056b3 !important;
}

/* Progress Bar Success -> Progress Bar Blue */
.progress-bar-success {
    background-color: #0056b3 !important;
}

/* List Group Item Success -> List Group Item Blue */
.list-group-item-success {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
}

.list-group-item-success.list-group-item-heading {
    color: inherit !important;
}

/* Table Success -> Table Blue */
.table-success,
.table-success > th,
.table-success > td {
    background-color: #d1ecf1 !important;
}

.table-hover .table-success:hover,
.table-hover .table-success:hover > th,
.table-hover .table-success:hover > td {
    background-color: #bce5eb !important;
}

/* Background Success -> Background Blue */
.bg-success {
    background-color: #0056b3 !important;
    color: #fff !important;
}

/* Text Success -> Text Blue */
.text-success {
    color: #0056b3 !important;
}

a.text-success:hover,
a.text-success:focus {
    color: #004494 !important;
}

/* Border Success -> Border Blue */
.border-success {
    border-color: #0056b3 !important;
}

/* Has Success (Form Validation) -> Has Blue */
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline,
.has-success.radio label,
.has-success.checkbox label,
.has-success.radio-inline label,
.has-success.checkbox-inline label {
    color: #0056b3 !important;
}

.has-success .form-control {
    border-color: #0056b3 !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
}

.has-success .form-control:focus {
    border-color: #004494 !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px rgba(0, 86, 179, 0.6) !important;
}

.has-success .input-group-addon {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

.has-success .form-control-feedback {
    color: #0056b3 !important;
}

/* Nav Pills Success -> Nav Pills Blue */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #0056b3 !important;
}

/* Dropdown Menu Success Items */
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: #0056b3 !important;
}

/* Custom Classes - Politeknik Indonusa Blue Theme */
.polinus-blue {
    color: #0056b3 !important;
}

.polinus-bg-blue {
    background-color: #0056b3 !important;
    color: #fff !important;
}

.polinus-border-blue {
    border-color: #0056b3 !important;
}

/* Gradient Buttons */
.btn-gradient-blue {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-blue:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3) !important;
}

/* Links with Success Color */
a.success-link {
    color: #0056b3 !important;
}

a.success-link:hover,
a.success-link:focus {
    color: #004494 !important;
    text-decoration: underline !important;
}

/* Pagination Active (if using success) */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Well Success -> Well Blue */
.well-success {
    background-color: #e3f2fd !important;
    border-color: #0056b3 !important;
}

/* Jumbotron Success -> Jumbotron Blue */
.jumbotron-success {
    background-color: #0056b3 !important;
    color: #fff !important;
}

/* Custom Akreditasi Badge Override */
.akreditasi {
    background: #0056b3 !important;
}

.akreditasi-b {
    background: #007bff !important;
}

/* Override any inline green colors */
[style*="green"],
[style*="#5cb85c"],
[style*="#4cae4c"],
[style*="#449d44"],
[style*="rgb(92, 184, 92)"] {
    color: #0056b3 !important;
}

[style*="background-color: green"],
[style*="background-color: #5cb85c"],
[style*="background-color: #4cae4c"],
[style*="background: green"],
[style*="background: #5cb85c"] {
    background-color: #0056b3 !important;
}

[style*="border-color: green"],
[style*="border-color: #5cb85c"] {
    border-color: #0056b3 !important;
}

/* Carousel/Slider Indicators - Blue */
#main-slider .carousel-indicators .active {
    background-color: #0056b3 !important;
}

.carousel-indicators .active {
    background-color: #0056b3 !important;
}

/* Carousel Control */
.carousel-control.left,
.carousel-control.right {
    background-image: none !important;
}

.carousel-control:hover,
.carousel-control:focus {
    color: #007bff !important;
}

/* Navbar Active State */
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: #007bff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-success {
        padding: 10px 20px !important;
    }
    
    .panel-success > .panel-heading {
        padding: 12px 15px !important;
    }
}

/* Print styles */
@media print {
    .panel-success > .panel-heading {
        background-color: #0056b3 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .btn-success {
        background-color: #0056b3 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

