html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    color: #333;
    line-height: 1.6;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    color: #333;
    line-height: 1.6;
}
main {
    position: absolute;
    top: 60px;
    bottom: 70px;
    left: 0;
    right: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-image: url('/images/fundo_sic.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: lighten;
}


body.with-header-dei {
    padding-top: 60px;
}

body.with-footer-dei {
    padding-bottom: 0px;
}

/* =====================================
   Header
===================================== */
#header_dei {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    height: 40px;
    background: inherit;
    color: inherit;
    border-bottom: 1px solid rgba(128, 128, 128, 0.4);
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header_dei a {
    color: inherit !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#header_dei .logo-dei {
    position: absolute;
    left: 0;
    padding-left: 8px;
    height: 100%;
    display: flex;
    align-items: center;
}

#header_dei .logo-dei img {
    height: 40px;
}

#header_dei .logo-uc {
    height: 60px;
}

/* =====================================
     banner
===================================== */
#information {

    color: #222;
    text-align: center;
}


#information h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

#information p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}


.table-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.ftp-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1500px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    border-radius: 12px;
    overflow: hidden;
}

.ftp-table th {
    background-color: #0096d6;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.ftp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.ftp-table tr:hover {
    background-color: #f3f3f3;
}
.ftp-table a {
    color: #0096d6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.ftp-table a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #007bb5;
    transition: width 0.3s ease;
}

.ftp-table a:hover {
    color: #007bb5;
}

.ftp-table a:hover::after {
    width: 100%;  /* traço cresce no hover */
}
.ftp-table tr.archived {
    background-color: #f9f9f9;
    font-style: italic;
    color: #999;
}
.ftp-table tr.archived a {
    color: #888;
}
@media (max-width: 768px) {
    .table-container {
        padding: 20px 10px;
        overflow-x: auto;
    }
    .ftp-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =====================================
   (cards)
===================================== */
.card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    width: 300px;
    height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    max-width: 120px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #333;
}

.card p {
    margin: 0;
    font-size: 1em;
    color: #666;
}


.repo-section {
    margin-bottom: 3rem;
    text-align: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 30px;
}

/* =====================================
   Footer
===================================== */
#footer_dei {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: inherit;
    border-top: 1px solid rgba(128, 128, 128, 0.4);
}


#footer_dei .dei-container {
    margin: auto;
    max-width: 100%;
    padding: 0 10px;
    width: 100%;
}

#footer_dei .footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-sic {
    width: 100px;
    max-width: 30vw;
    height: auto;
    transition: filter 0.2s ease;
    filter: brightness(0.95);
}

.footer-text {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 5px;
}

.dark-mode .footer-text {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-right: 20px;
    flex-wrap: wrap;
}

.footer-social-nav .social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.3s ease;
    color: #232323;
}

.footer-social-nav .social-icon:hover {
    opacity: 1;
}

.dark-mode .footer-social-nav .social-icon {
    color: #ffffff;
}


.warning {
    color: red !important;
    font-weight: bold;
    animation: pulseWarning 1.5s infinite;
}

.browse-server {
    text-align: center;
    margin: 40px auto;
    color: #000;
}

.browse-server h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.browse-server .button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    color: #fff;
    background-color: #0096D6;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.browse-server .custom-hr {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #0096D6, #007bb5);
    margin: 20px auto;
    border: none;
    border-radius: 5px;
}


@media (max-width: 768px) {
    .card {
        width: calc(50% - 30px);
        height: auto;
    }
    header h1 {
        font-size: 2.5em;
    }
    header p {
        font-size: 1.2em;
    }
}

@media (max-width: 639px) {
    .footer-text {
        display: none;
    }
}

@media (max-width: 600px) {
    #header_dei .logo-dei img {
        height: 24px;
    }
    #header_dei .logo-uc {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .card {
        width: calc(100% - 40px);
        height: auto;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
}


@keyframes pulseWarning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
