main > .container {
    padding: 80px 15px 20px;
}

#footer {
    font-size: .85em;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* Zoho Project Extractor Custom Styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table-responsive {
    border-radius: 0.25rem;
}

.badge {
    font-weight: 500;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Improve form appearance */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #004085;
}

/* List improvements */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Navbar dropdown improvements */
.navbar .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Status badge colors for tasks and bugs */
.badge-status-open { background-color: #0d6efd !important; }
.badge-status-inprogress { background-color: #fd7e14 !important; }
.badge-status-completed, .badge-status-closed, .badge-status-done { background-color: #198754 !important; }
.badge-status-deferred, .badge-status-onhold { background-color: #6c757d !important; }

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1100;
}

/* Clickable cards */
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-link-wrapper:hover {
    color: inherit;
}
.card-link-wrapper:hover .card {
    border-color: #0d6efd;
}

/* Export progress modal */
#export-modal .progress {
    border-radius: 0.5rem;
}

#export-modal .progress-bar {
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.4s ease;
}

/* Search / filter bar */
.filter-bar {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive table on mobile */
@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
    
    .zoho-project .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .card .table {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.15rem 0.35rem;
    }
}