//
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
//
//
// Adaptable Alerts Style sheet
//
// @package    theme_adaptable
// @copyright  &copy; 2025 - G J Barnard
// @author     G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
// @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
//

.customalert {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
     a {
        text-decoration: underline;
        &:hover {
            color: red;
        }
    }
    p {
        display: inline;
    }
}

// Alerts.
.alert {
    margin-bottom: 0;

    // Alert messages.
    .close {
        text-decoration: none;
    }
}

// Course alerts.
.adaptable-alert-info {
    background-color: [[setting:alertbackgroundcolorinfo]];
    border-width: 1px;
    border-color: [[setting:alertbordercolorinfo]];
    color: [[setting:alertcolorinfo]];

    a,
    a:hover {
        color: [[setting:alertcolorinfo]];
    }
}

.adaptable-alert-success {
    background-color: [[setting:alertbackgroundcolorsuccess]];
    border-color: [[setting:alertbordercolorsuccess]];
    border-width: 1px;
    color: [[setting:alertcolorsuccess]];

    a,
    a:hover {
        color: [[setting:alertcolorsuccess]];
    }
}

.adaptable-alert-warning {
    background-color: [[setting:alertbackgroundcolorwarning]];
    border-color: [[setting:alertbordercolorwarning]];
    border-width: 1px;
    color: [[setting:alertcolorwarning]];

    a,
    a:hover {
        color: [[setting:alertcolorwarning]];
    }
}
