/* Reset untuk keselarasan */
#as-app-filter {
    margin-bottom: 1.5rem;
}
#as-app-filter input,
#as-app-filter select {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

#as-app-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Grid kolom */
#as-app-list > .col-md-4 {
    flex: 1 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
    #as-app-list > .col-md-4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Card */
.card {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card-img-top {
    width: 100%;
    /*height: 180px;*/
    object-fit: contain;
    background: #f8f8f8;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Tombol */
.card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, transform 0.1s;
}
.card .btn:hover {
    filter: brightness(0.9);
    transform: scale(1.02);
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    vertical-align: text-bottom;
    border: 0.25em solid #ccc;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}
.btn-download {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-download:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    text-decoration: none;
    color: #fff;
}

.btn-download:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.btn-download-secondary {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    color: #fff;
}
.btn-download-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

.as-pagination {
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
    clear: both;
}

.as-pagination-nav {
    display: inline-block;
}

.as-pagination-btn {
    padding: 0.3rem 0.68rem;
    margin: 0 3px;
    background: #555;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.as-pagination-btn:hover {
    background: #222;
}

.as-pagination-btn.active {
    background: #007bff;
    border-color: #007bff;
}
