/*
CSS File Refactored According to Best Practices:
- Added cursor: pointer for hoverable elements
- Removed duplicate styles
- Grouped similar selectors
- Added comments for clarity
- Ensured consistent indentation and formatting
- Organized properties logically
*/

/* General Styles */
body {
    background: linear-gradient(to bottom right, #1f3c88, #5d8aa8);
}
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    background: linear-gradient(to bottom, #f0f2f5, #dfe6e9);
    border: 2px solid #4b5d67;
    border-radius: 15px;
    margin: 20px auto; /* Centraliza horizontalmente */
    width: 90%;
    max-width: 1200px; /* Largura máxima */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.content-wrapper {
    margin: 20px auto !important;
    width: 90% !important;
    max-width: 1200px !important;
}

.main-footer {
    background-color: #334257;
    color: white;
    text-align: center;
    padding: 20px;
}

.navbar {
    background-color: #334257;
}

    .navbar .navbar-brand,
    .navbar .navbar-nav .nav-link {
        color: white;
    }

        .navbar .navbar-brand:hover,
        .navbar .navbar-nav .nav-link:hover {
            color: #d1d8e0;
        }

.brand-image {
    height: 40px;
    width: 40px;
}

.content-header {
    background: linear-gradient(to bottom, #1f3c88, #334257);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 40px;
}

    .content-header h1 {
        font-size: 36px;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

/* Button Styles */
.btn-custom,
.btn-danger-custom {
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
    cursor: pointer; /* Adiciona cursor pointer */
}

.btn-custom {
    background-color: #1f3c88;
}

    .btn-custom:hover {
        background-color: #163172;
    }

.btn-danger-custom {
    background-color: #e74c3c;
}

    .btn-danger-custom:hover {
        background-color: #c0392b;
    }

/* Input Group Styles */
.input-group-custom {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
}

    .input-group-custom .form-control {
        border: none;
        background: transparent;
        font-family: 'Courier New', Courier, monospace;
        font-size: 16px;
        padding-left: 50px;
    }

    .input-group-custom .input-group-prepend {
        position: absolute;
        z-index: 10;
        width: 50px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
    }

    .input-group-custom .input-group-append .btn {
        border: none;
        background-color: #1f3c88;
        color: #fff;
        cursor: pointer; /* Adiciona cursor pointer */
    }

        .input-group-custom .input-group-append .btn:hover {
            background-color: #163172;
        }

/* Card Styles */
.card-custom {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 20px;
    cursor: pointer; /* Adiciona cursor pointer */
}

    .card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.card-header-custom {
    background-color: #1f3c88;
    color: white;
    text-align: center;
    border-bottom: none;
}

/* Small Box Styles */
.small-box {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    position: relative;
    cursor: pointer; /* Adiciona cursor pointer */
}

    .small-box .icon {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 60px;
        opacity: 0.2;
    }

.small-box-footer {
    display: block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s;
    cursor: pointer; /* Adiciona cursor pointer */
}

    .small-box-footer:hover {
        background-color: rgba(255, 255, 255, 0.3);
        text-decoration: none;
    }

/* Form Control Styles */
.form-control {
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .form-control:focus {
        border-color: #1f3c88;
        box-shadow: 0 0 5px rgba(31, 60, 136, 0.5);
    }

/* Section Active States */
.section-card.active {
    border: 2px solid #1f3c88;
}

.section-form {
    display: none;
}

    .section-form.active {
        display: block;
    }

/* Content Layout */
.content {
    display: flex;
    justify-content: center;
}

.container-custom {
    width: 100%;
    max-width: 1200px;
}

/* Background Color Utilities */
.bg-lightpurple {
    background-color: #e1acd7;
    color: #fff;
}

.bg-lightorange {
    background-color: #ffe4c4;
    color: #fff;
}

/* Hidden Elements Utility */
.d-none {
    display: none !important;
}