/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #305e4b;
}

.container {
    padding: 10px 20px;
    margin-top: 150px !important;
}

/* Typography */
h1 {
    font-size: 2.2em;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Local tabs styling */
.local-tabs {
    border-bottom: 2px solid #ddd;
}

.local-tabs .nav-item {
    margin-bottom: -2px;
}

.local-tab-link {
    color: #cecece;
    background-color: transparent;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    -webkit-transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.local-tab-link:hover {
    color: #289a96;
    text-decoration: none;
}

.local-tab-link.active {
    color: #000;
    border-bottom: 3px solid #cecece;
}

/* Tab content */
.tab-content {
    margin-top: 20px;
}

/* Card styles */
.card {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px 0;
    background: none;
}

.card-body {
    padding: 0;
}

.y-stories {
    color: #333;
}

.card-title {
    font-weight: bold;
    font-size: 1.25em;
    color: #333;
    cursor: pointer;
}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
    font-size: 1em;
    color: #666;
}

.card-text small {
    display: block;
}

/* Dropdown styles */
.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    min-width: 160px;
    max-width: 200px;
    right: 0;
    left: auto;
}

.local-dropdown.dropdown .dropdown-menu a.dropdown-item:hover,
.local-dropdown.dropdown .dropdown-menu a.dropdown-item:focus,
.local-dropdown.dropdown .dropdown-menu a.dropdown-item:active {
    background-color: transparent !important;
    color: #289a96 !important;
    -webkit-transition: color 0.15s ease-in-out;
    transition: color 0.15s ease-in-out;
}

/* Button styles */
.btn-link {
    color: #007bff;
    text-decoration: none;
    padding: 0;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Modal styles */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Icon styles */
.svg-icon, .svg-share, .svg-drop {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Utility classes */
.d-flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 5px !important;
}

/* Table styles */
.comments-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.comments-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.comments-table td {
    padding: 12px 15px;
    background-color: #ffffff;
    border-top: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
}

.comments-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.comments-table tr:hover td {
    background-color: #e9ecef;
    -webkit-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

.comments-table tr {
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Paging navigation */
.paging-nav {
    margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .local-tabs .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .local-tab-link {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .d-flex {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .dropdown {
        width: 100%;
        margin-top: 10px;
    }
}

/* Additional utility classes */
.hover-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}