.modern-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 15px;
    transform: translateY(0);
    color: #6c757d;
    z-index: 1;
}

.search-box input {
    padding-left: 45px;
    padding-right: 50px;
    height: 50px;
    border-radius: 25px;
    border: 1px solid rgba(50, 110, 146, 0.2);
    width: 100%;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: -1px;
    transform: translateY(0);
    border: none;
    background: linear-gradient(23deg, #184554, #2d7d96);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(0) scale(1.05);
}

.form-select {
    height: 50px;
    border-radius: 25px;
    border: 1px solid rgba(50, 110, 146, 0.2);
    padding: 0 20px;
}


.simple-keyboard {
    display: none;
    width: 100%;
    height: 11vh;
    background: #f8f9fa;
    color: gray;
    margin-top: 15px;
}

.simple-keyboard .hg-row {
    display: flex;
    justify-content: space-between;
}

.simple-keyboard .hg-button {
    flex: 1;
    margin: 3px;
    padding: 6px;
    font-size: 1em;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    cursor: pointer;
    border-radius: 4px;
}

.ordinance-card, .resolution-card {
    position: relative;
    height: 100%;
    transition: transform 0.3s ease;
    padding: 1.25rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ordinance-card:hover, .resolution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.ordinance-header, .resolution-header {
    margin-bottom: 15px;
}

.ordinance-header, .resolution-header {
    margin-bottom: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.ordinance-number, .resolution-number {
    font-weight: 600;
    color: #326e92;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.ordinance-date, .resolution-date {
    margin-bottom: 10px;
}

.ordinance-date .date, .resolution-date .date {
    font-weight: 500;
    color: #143655;
    display: block;
}

.ordinance-category, .resolution-category {
    background: rgba(50, 110, 146, 0.1);
    color: #326e92;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    position: absolute;
    top: 1.25rem; /* matches card padding */
    right: 1.25rem; /* matches card padding */
    margin-top: 0; /* remove previous margin */
}

.ordinance-title, .resolution-title {
    color: #1f3745;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ordinance-description, .resolution-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.ordinance-meta, .resolution-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.meta-item i {
    color: #326e92;
}

.ordinance-actions, .resolution-actions {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view {
    background: linear-gradient(23deg, #184554, #2d7d96);
    color: white;
}

.btn-download {
    border: 2px solid #326e92;
    color: #326e92;
}

.btn-view:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .ordinance-actions {
        flex-direction: column;
    }
    
    .btn-view,
    .btn-download {
        width: 100%;
    }
}
