.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.action-button.create::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
}

.action-button.browse::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
}

.action-button:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.action-button.create .action-button-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #10b981;
}

.action-button.my-listings .action-button-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #3b82f6;
}

.action-button.browse .action-button-icon {
    color: #3b82f6;
}

.action-buttons {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 15px;
    padding-left: 30px;
    padding-right: 30px;
}

.action-button {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.action-button-icon {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.action-button-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.action-button-title {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.action-button-description {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
}

.action-button.logout {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 100%;
    cursor: pointer;
}

.action-button.logout .action-button-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ef4444;
}

.action-buttons form {
    display: contents;
}

.action-button.home .action-button-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #f59e0b;
}

.action-button.home::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
}

/* Active navigation indicator */
.action-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

/* Color-specific active indicators */
.action-button.home.active::after {
    background-color: #f59e0b;
}

.action-button.my-listings.active::after {
    background-color: #3b82f6;
}

.action-button.create.active::after {
    background-color: #10b981;
}

.action-button.profile.active::after {
    background-color: #8b5cf6;
}

.action-button.logout.active::after {
    background-color: #ef4444;
}

@media (max-width: 640px) {
    .action-button-description {
        display: none;
    }

    .action-button-title {
        display: none;
    }

    .action-button {
        padding: 12px;
    }

    .action-button-icon {
        margin-bottom: 0;
    }
}

.action-button.login .action-button-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #3b82f6;
}

.action-button.login.active::after {
    background-color: #3b82f6;
}

.action-button.register .action-button-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #8b5cf6;
}
.action-button.register.active::after {
    background-color: #8b5cf6;
}

.action-button.profile .action-button-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #8b5cf6;
}