@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

abbr[title] {
    border-bottom: none !important;
    cursor: inherit !important;
    text-decoration: none !important;
}

.filesPageCls {
    text-align: center !important;
    font-size: large !important;
    width: 11rem;
    height: 6rem;
}

.custom-footer {
    background-color: #0a1f3c;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 20px;
}

.footer-section {
    margin: 10px 20px;
    min-width: 150px;
}

.footer-section h5 {
    color: #09a350;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: #d3d3d3;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.social-icons {
    text-align: center;
    margin: 20px 0;
}

.social-icons a {
    color: #ffffff;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #09a350;
}

.footer-disclaimer {
    text-align: center;
    font-size: 12px;
    margin: 20px 10px;
    color: #aaaaaa;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #bbbbbb;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #25ad64 0%, #1e8a4f 100%);
    color: #ffffff;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
    font-size: 0.85rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.footer-logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.footer-section {
    position: relative;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.5));
    transition: all 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.8));
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    position: relative;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.3;
    position: relative;
    padding-top: 0.8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-info p {
    margin-bottom: 0.2rem;
}

.footer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%);
}

.copyright-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.copyright {
    margin: 0;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .copyright-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-logo img {
        height: 90px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-section {
        padding: 0.5rem;
        text-align: center;
    }
    
    .footer-info {
        padding: 0.8rem;
    }
}

/* Sıra No column width optimization - AGGRESSIVE VERSION */
/* Target the first column (Sıra No) in tables with high specificity */
.table th:first-child,
.table td:first-child {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 0.875rem !important;
}

/* For responsive tables with high specificity */
.table-responsive .table th:first-child,
.table-responsive .table td:first-child {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 0.875rem !important;
}

/* Additional class for explicit targeting with maximum specificity */
.sira-no-column {
    min-width: 60px;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 0.875rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* Override any Bootstrap table styles */
.table > :not(caption) > * > .sira-no-column {
    min-width: 60px;
    min-width: 60px !important;
    max-width: 60px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* Force the table to respect column widths */
.table {
    table-layout: fixed !important;
}

/* Specific override for dashboard tables */
.card-body .table th:first-child,
.card-body .table td:first-child {
    min-width: 60px;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}
