/* WordPress Conflict Prevention CSS */
/* Bimetrikv2 Theme - WordPress Override Styles */

/* Admin Bar Spacing */
body.admin-bar .fixed.top-0 {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .fixed.top-0 {
        top: 46px;
    }
}

/* WordPress Default Styles Override */
.bimetrik-theme .wp-block-image {
    margin: 0;
}

.bimetrik-theme .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.bimetrik-theme .wp-block-quote {
    border-left: 4px solid #29a2e8;
    padding-left: 20px;
    margin: 20px 0;
}

.bimetrik-theme .wp-block-quote cite {
    font-style: italic;
    color: #666;
}

.bimetrik-theme .wp-block-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.bimetrik-theme .wp-block-preformatted {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.bimetrik-theme .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.bimetrik-theme .wp-block-table th,
.bimetrik-theme .wp-block-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.bimetrik-theme .wp-block-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.bimetrik-theme .wp-block-button {
    margin: 20px 0;
}

.bimetrik-theme .wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #29a2e8;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bimetrik-theme .wp-block-button__link:hover {
    background-color: #1e7bb8;
    transform: translateY(-2px);
}

.bimetrik-theme .wp-block-separator {
    border: none;
    border-top: 2px solid #29a2e8;
    margin: 40px 0;
}

.bimetrik-theme .wp-block-spacer {
    clear: both;
}

.bimetrik-theme .wp-block-embed {
    margin: 20px 0;
}

.bimetrik-theme .wp-block-embed iframe {
    max-width: 100%;
    height: auto;
}

/* WordPress Comments Override */
.bimetrik-theme .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bimetrik-theme .comment-list .comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bimetrik-theme .comment-list .comment-author {
    font-weight: bold;
    margin-bottom: 10px;
}

.bimetrik-theme .comment-list .comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.bimetrik-theme .comment-list .comment-content {
    line-height: 1.6;
}

.bimetrik-theme .comment-list .reply {
    margin-top: 15px;
}

.bimetrik-theme .comment-list .reply a {
    color: #29a2e8;
    text-decoration: none;
    font-weight: bold;
}

.bimetrik-theme .comment-list .reply a:hover {
    text-decoration: underline;
}

/* WordPress Search Form Override */
.bimetrik-theme .search-form {
    display: flex;
    margin: 20px 0;
}

.bimetrik-theme .search-form .search-field {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.bimetrik-theme .search-form .search-field:focus {
    border-color: #29a2e8;
}

.bimetrik-theme .search-form .search-submit {
    padding: 12px 24px;
    background-color: #29a2e8;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: bold;
}

.bimetrik-theme .search-form .search-submit:hover {
    background-color: #1e7bb8;
}

/* WordPress Navigation Override */
.bimetrik-theme .wp-block-navigation {
    margin: 20px 0;
}

.bimetrik-theme .wp-block-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.bimetrik-theme .wp-block-navigation li {
    margin-right: 20px;
}

.bimetrik-theme .wp-block-navigation a {
    color: #161c2d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bimetrik-theme .wp-block-navigation a:hover {
    color: #29a2e8;
}

/* WordPress Widget Override */
.bimetrik-theme .widget {
    margin-bottom: 30px;
}

.bimetrik-theme .widget-title {
    font-size: 20px;
    font-weight: bold;
    color: #161c2d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #29a2e8;
}

.bimetrik-theme .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bimetrik-theme .widget li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.bimetrik-theme .widget li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #29a2e8;
    font-weight: bold;
}

.bimetrik-theme .widget a {
    color: #161c2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bimetrik-theme .widget a:hover {
    color: #29a2e8;
}

/* WordPress Post Override */
.bimetrik-theme .post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.bimetrik-theme .post:last-child {
    border-bottom: none;
}

.bimetrik-theme .post-title {
    font-size: 28px;
    font-weight: bold;
    color: #161c2d;
    margin-bottom: 15px;
}

.bimetrik-theme .post-title a {
    color: inherit;
    text-decoration: none;
}

.bimetrik-theme .post-title a:hover {
    color: #29a2e8;
}

.bimetrik-theme .post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.bimetrik-theme .post-content {
    line-height: 1.6;
    color: #161c2d;
}

.bimetrik-theme .post-content p {
    margin-bottom: 20px;
}

.bimetrik-theme .post-content h1,
.bimetrik-theme .post-content h2,
.bimetrik-theme .post-content h3,
.bimetrik-theme .post-content h4,
.bimetrik-theme .post-content h5,
.bimetrik-theme .post-content h6 {
    color: #161c2d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.bimetrik-theme .post-content h1 {
    font-size: 32px;
}

.bimetrik-theme .post-content h2 {
    font-size: 28px;
}

.bimetrik-theme .post-content h3 {
    font-size: 24px;
}

.bimetrik-theme .post-content h4 {
    font-size: 20px;
}

.bimetrik-theme .post-content h5 {
    font-size: 18px;
}

.bimetrik-theme .post-content h6 {
    font-size: 16px;
}

.bimetrik-theme .post-content ul,
.bimetrik-theme .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.bimetrik-theme .post-content li {
    margin-bottom: 10px;
}

.bimetrik-theme .post-content blockquote {
    border-left: 4px solid #29a2e8;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.bimetrik-theme .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.bimetrik-theme .post-content a {
    color: #29a2e8;
    text-decoration: none;
}

.bimetrik-theme .post-content a:hover {
    text-decoration: underline;
}

/* WordPress Pagination Override */
.bimetrik-theme .pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.bimetrik-theme .pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f8f9fa;
    color: #161c2d;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bimetrik-theme .pagination .page-numbers:hover,
.bimetrik-theme .pagination .page-numbers.current {
    background-color: #29a2e8;
    color: white;
}

/* WordPress Form Override */
.bimetrik-theme .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.bimetrik-theme .form-control:focus {
    outline: none;
    border-color: #29a2e8;
}

.bimetrik-theme .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #29a2e8;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bimetrik-theme .btn:hover {
    background-color: #1e7bb8;
    transform: translateY(-2px);
}

.bimetrik-theme .btn-primary {
    background-color: #29a2e8;
}

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

.bimetrik-theme .btn-success {
    background-color: #28a745;
}

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

.bimetrik-theme .btn-warning {
    background-color: #ffc107;
    color: #161c2d;
}

.bimetrik-theme .btn-info {
    background-color: #17a2b8;
}

.bimetrik-theme .btn-light {
    background-color: #f8f9fa;
    color: #161c2d;
}

.bimetrik-theme .btn-dark {
    background-color: #343a40;
}

/* WordPress Alert Override */
.bimetrik-theme .alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 5px;
}

.bimetrik-theme .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.bimetrik-theme .alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.bimetrik-theme .alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.bimetrik-theme .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* WordPress Badge Override */
.bimetrik-theme .badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: white;
    background-color: #29a2e8;
    border-radius: 3px;
}

.bimetrik-theme .badge-primary {
    background-color: #29a2e8;
}

.bimetrik-theme .badge-secondary {
    background-color: #6c757d;
}

.bimetrik-theme .badge-success {
    background-color: #28a745;
}

.bimetrik-theme .badge-danger {
    background-color: #dc3545;
}

.bimetrik-theme .badge-warning {
    background-color: #ffc107;
    color: #161c2d;
}

.bimetrik-theme .badge-info {
    background-color: #17a2b8;
}

.bimetrik-theme .badge-light {
    background-color: #f8f9fa;
    color: #161c2d;
}

.bimetrik-theme .badge-dark {
    background-color: #343a40;
}

/* WordPress Card Override */
.bimetrik-theme .card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bimetrik-theme .card-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
}

.bimetrik-theme .card-body {
    padding: 20px;
}

.bimetrik-theme .card-footer {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* WordPress List Group Override */
.bimetrik-theme .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bimetrik-theme .list-group-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-bottom: none;
}

.bimetrik-theme .list-group-item:last-child {
    border-bottom: 1px solid #e9ecef;
}

.bimetrik-theme .list-group-item:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.bimetrik-theme .list-group-item:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.bimetrik-theme .list-group-item.active {
    background-color: #29a2e8;
    color: white;
    border-color: #29a2e8;
}

.bimetrik-theme .list-group-item:hover {
    background-color: #f8f9fa;
}

/* WordPress Modal Override */
.bimetrik-theme .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.bimetrik-theme .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bimetrik-theme .modal-dialog {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.bimetrik-theme .modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bimetrik-theme .modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.bimetrik-theme .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.bimetrik-theme .modal-body {
    padding: 20px;
}

.bimetrik-theme .modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* WordPress Tooltip Override */
.bimetrik-theme .tooltip {
    position: relative;
    display: inline-block;
}

.bimetrik-theme .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #161c2d;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.bimetrik-theme .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #161c2d transparent transparent transparent;
}

.bimetrik-theme .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* WordPress Progress Override */
.bimetrik-theme .progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.bimetrik-theme .progress-bar {
    height: 100%;
    background-color: #29a2e8;
    transition: width 0.3s ease;
}

.bimetrik-theme .progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.bimetrik-theme .progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 20px 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* WordPress Spinner Override */
.bimetrik-theme .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #29a2e8;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* WordPress Responsive Override */
@media (max-width: 768px) {
    .bimetrik-theme .wp-block-navigation ul {
        flex-direction: column;
    }
    
    .bimetrik-theme .wp-block-navigation li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .bimetrik-theme .pagination {
        flex-wrap: wrap;
    }
    
    .bimetrik-theme .pagination .page-numbers {
        margin: 5px;
    }
    
    .bimetrik-theme .modal-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .bimetrik-theme .tooltip .tooltiptext {
        width: 150px;
        margin-left: -75px;
    }
}

/* WordPress Accessibility Override */
.bimetrik-theme .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.bimetrik-theme .screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Focus Override */
.bimetrik-theme *:focus {
    outline: 2px solid #29a2e8;
    outline-offset: 2px;
}

.bimetrik-theme button:focus,
.bimetrik-theme input:focus,
.bimetrik-theme select:focus,
.bimetrik-theme textarea:focus {
    outline: 2px solid #29a2e8;
    outline-offset: 2px;
}

/* WordPress Skip Link Override */
.bimetrik-theme .skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.bimetrik-theme .skip-link:focus {
    position: fixed;
    left: 6px;
    top: 7px;
    z-index: 100000;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
}

/* WordPress Print Override */
@media print {
    .bimetrik-theme .no-print {
        display: none !important;
    }
    
    .bimetrik-theme .print-only {
        display: block !important;
    }
    
    .bimetrik-theme .modal {
        display: none !important;
    }
    
    .bimetrik-theme .tooltip .tooltiptext {
        display: none !important;
    }
}
