@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Modified body and body::before rules */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 50px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
    background: linear-gradient(298deg, #E91F2F 2.25%, #E91F2F 2.26%, #16458F 46.13%, rgba(23, 71, 142, 0.80) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; 
}
.header {
    text-align: center;
    padding: 30px 0 20px;
    width: 100%;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 150px;
}

.system-title {
    color: #ffffff;
    font-size: 25px;
    font-weight: 600;
    margin: 15px 0;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.dashboard-content {
    background-color: rgba(16, 21, 30, .9);
    border-radius: 25px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin: 50px;
}

.dashboard-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(to right, #17478E, #F01227,  #F7894E, #F87B13, #16458F, #FDDF9A);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.module-card {
    background: #222A37;
    border-radius: 21px;
    box-shadow: 12px 15px 27px 0px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    padding: 25px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1 0 0;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 15px 20px 30px 0px rgba(0, 0, 0, 0.5);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.module-title {
    color: #DDE8F2;
    text-align: center;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.module-description {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    padding: 0 10px;
}

.module-function {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    margin-bottom: 15px;
}

.dashboard-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Button variations */
.btn {
    color: #ffffff;
    border-radius: 7px;
    background: #17468E;
    display: flex;
    padding: 7px 27px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    text-decoration: none;
}

.btn:hover {
    background-color: #002B50;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-content {
        padding: 30px;
        margin: 30px;
    }
    
    body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .system-title {
        font-size: 26px;
    }
    
    .dashboard-content {
        padding: 25px;
        margin: 20px;
    }
    
    body {
        padding: 20px;
    }
    
    .module-card {
        min-height: 260px;
        padding: 25px;
    }
}

@media (max-width: 425px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .module-card {
        min-height: 200px;
        padding: 20px;
    }
    
    .dashboard-content {
        padding: 15px;
        margin: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .system-title {
        font-size: 22px;
    }
    
    .logo-container img {
        max-height: 100px;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .module-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 5px 20px;
        font-size: 14px;
    }
    
    .header {
        padding: 15px 0 10px;
    }
    .module-card {
        min-height: 180px;
        padding: 15px;
    }
}