/* assets/admin.css */

/* Reuse basic resets if needed, or just import */
@import url('style.css');

body {
    background-color: #f4f4f9;
}

.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .admin-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.admin-card:hover {
    background: #eee;
}

.login-btn {
    background: #2563eb;
    color: #fff;
}

.logout-btn {
    display: block;
    margin-top: 2rem;
    text-align: center;
    color: #dc2626;
    text-decoration: none;
    font-weight: bold;
}

/* Products List */
.product-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.drag-handle {
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: move;
    color: #888;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.product-info {
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-edit {
    background: #fbbf24;
    color: #000;
}

.btn-delete {
    background: #dc2626;
    color: #fff;
}

.float-add {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 1000;
}

/* Upload Progress */
.progress-bar-container {
    margin-top: 10px;
    background: #eee;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #22c55e;
    width: 0%;
    transition: width 0.2s;
}

.upload-status {
    font-size: 0.9rem;
    margin-top: 5px;
}